Question: Create a clothes warehouse control application in Spring Boot - Create a shell project - Create an item model that will contain following fields: id,

Create a clothes warehouse control application in Spring Boot

- Create a shell project

- Create an item model that will contain following fields: id, name, brand (should be enum of fashionable brands(Balenciaga, Stone Island, Dior, e.g), year of creation, price

- Create Thymeleaf page to add item to stock using HTML form

- On addition of an item form should perform following validations(price is more than 1000, brand should be one of the list, year of creation is more than 2021)

- Addition should be performed successfully with no errors - Use Bootstrap to provide styling

Add Database Capabilities for Clothes Warehouse:

- Implement JPA Repository for Clothes Store with pagination and sorting

- Annotate Item with JPA model annotations so Item is interpreted as table

- Use command line runner to populate the table with some items

- On addition of the item it should be save to the database

- After addition you should be redirected to the list page (that you would need to create) that lists all the items

- Use bootstrap for styling of the list

- Create custom query to return items only for one specific brand and year 2022 and create a button on list page that on click sorts list by brand and re-renders the list

Please provide the code for each file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!