- Correct all of the deficiencies in index.html (attached file)
- "Sectors" selectbox:
- Add all the entries from the "Sectors" selectbox to database
- Compose the "Sectors" selectbox using data from database
- Perform the following activities after the "Save" button has been pressed:
- Validate all input data (all fields are mandatory)
- Store all input data to database (Name, Sectors, Agree to terms)
- Refill the form using stored data
- Allow the user to edit his/her own data during the session
- See base source_index.html for how to "build" the JSON file from the HTML
- Place the JSON file in the resources directory
- Uncomment db/LoadDatabase.java
- NB! If you set your database to persist after builds (e.g. not storing in memory), leaving it uncommented will cause crashes or errors.
- Add
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=truein application.properties - Run the application
Still a few too many DB requests, even though I have done my best to reduce them. Issues mostly stem from the self-referential relationships.