- Timestamp:
- 01/07/23 18:37:26 (23 months ago)
- Branches:
- main
- Children:
- 5e7345e
- Parents:
- 37966cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Warehouse.java
r37966cf r84652fb 7 7 import org.hibernate.Hibernate; 8 8 9 import javax.persistence.Column; 10 import javax.persistence.Entity; 11 import javax.persistence.Id; 9 import javax.persistence.*; 12 10 import java.util.Objects; 13 11 … … 20 18 @Id 21 19 @Column(name = "id_warehouse") 20 @GeneratedValue(strategy = GenerationType.IDENTITY) 22 21 Integer id; 23 22 @Column(name = "warehouse_location") 24 23 String location; 24 25 public Warehouse(String name) { 26 this.location = name; 27 } 25 28 26 29 @Override
Note:
See TracChangeset
for help on using the changeset viewer.