SELECT customer_id = ?
FROM list_of_items
WHERE date_of_purchase = NULL;
enum Material {
"golden"
"sliver"
"copper"
}
Table customer {
id integer [primary key]
username varchar(255)
phone_number varchar(10)
address text
}
Table item {
id integer [primary key]
name varchar(255)
price double
description text
}
Table clothes {
id integer [primary key, ref: < item.id]
brand varchar(255)
size varchar(255)
}
Table accessories {
id integer [primary key, ref: < item.id]
material Material
type varchar(255)
weight double
}
Table list_of_items {
list_of_items_id integer
customer_id integer [primary key, ref: > customer.id]
item_id integer [primary key, ref: > item.id]
quantity integer
date_of_purchase datetime
}
spring.application.name=demo
spring.jpa.hibernate.ddl-auto=update
spring.datasource.username=your_username
spring.datasource.password=your_password
spring.datasource.url=jdbc:mysql://localhost:3306/your_schema
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#allow table's name like tblProduct (allow creating customized table name)
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.open-in-view=false
spring.jpa.properties.hibernate.transaction.jta.platform=org.hibernate.engine.transaction.jta.platform.internal.AtomikosJtaPlatform
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
- 07/05/2024: Dựng Model (Class) - Database: thống nhất các mối quan hệ khi map từ DB sang class object, add các methods: getter, setter, constructor,...
- 12/05/2024: Dựng Controller - Service: dựng các luồng đi chính, test các API để chuẩn bị làm frontend
- 13/05/2024: Hỏi góp ý của thầy debug
- 18/05/2024: Test toàn bộ chương trình
- 20/05/2024: Thuyết trình
- 02/05/2024: Init project
- 05/05/2024: Đã xong models, đang làm repositories
- 09/05/2024: Đã dựng xong cơ bản của luồng liên quan đến Item, thiếu các luồng findby...
- 11/06/2024: Xong services + controller, check?
- 12/05/2024: Đã xong toàn bộ backend
- 18/05/2024: Đã xong toàn bộ frontend
- 19/05/2024: Test chương trình