Changeset eaf0f1b for src/main/java/com/example/autopartz/model/Part.java
- Timestamp:
- 01/03/23 03:19:50 (23 months ago)
- Branches:
- main
- Children:
- feffc2f
- Parents:
- 23a2bc5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Part.java
r23a2bc5 reaf0f1b 2 2 3 3 import jakarta.persistence.*; 4 import lombok.*; 4 import lombok.Getter; 5 import lombok.RequiredArgsConstructor; 6 import lombok.Setter; 7 import lombok.ToString; 5 8 import org.hibernate.Hibernate; 6 9 7 import java.util.ArrayList;8 10 import java.util.List; 9 11 import java.util.Objects; … … 28 30 @ToString.Exclude 29 31 List<Category> categoryList; 32 @ManyToMany 33 @JoinTable(name = "part_is_in_stock_in_warehouse", joinColumns = 34 @JoinColumn(name = "id_part"), 35 inverseJoinColumns = @JoinColumn(name = "id_warehouse")) 36 @ToString.Exclude 37 List<Warehouse> warehouseList; 38 @ManyToMany 39 @JoinTable(name = "part_is_appropriate_for_car", joinColumns = 40 @JoinColumn(name = "id_part"), 41 inverseJoinColumns = @JoinColumn(name = "id_car")) 42 @ToString.Exclude 43 List<Car> carList; 30 44 31 45 @Override
Note:
See TracChangeset
for help on using the changeset viewer.