Changeset eaf0f1b for src/main/java
- Timestamp:
- 01/03/23 03:19:50 (23 months ago)
- Branches:
- main
- Children:
- feffc2f
- Parents:
- 23a2bc5
- Location:
- src/main/java/com/example/autopartz/model
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Order.java
r23a2bc5 reaf0f1b 6 6 7 7 import java.time.LocalDateTime; 8 import java.util.List; 8 9 import java.util.Objects; 9 10 … … 22 23 @ManyToOne 23 24 Client user; 25 @ManyToMany 26 @JoinTable(name = "order_contains_part", joinColumns = 27 @JoinColumn(name = "id_order"), 28 inverseJoinColumns = @JoinColumn(name = "id_part")) 29 @ToString.Exclude 30 List<Part> partList; 24 31 25 32 @Override -
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 -
src/main/java/com/example/autopartz/model/RepairShop.java
r23a2bc5 reaf0f1b 1 1 package com.example.autopartz.model; 2 2 3 import jakarta.persistence.Entity; 4 import jakarta.persistence.Id; 5 import jakarta.persistence.Table; 3 import jakarta.persistence.*; 6 4 import lombok.*; 7 5 import org.hibernate.Hibernate; 8 6 7 import java.util.List; 9 8 import java.util.Objects; 10 9 … … 21 20 String rs_location; 22 21 String rs_phone_number; 22 @ManyToMany 23 @JoinTable(name = "repair_shop_is_authorized_for_car_make", joinColumns = 24 @JoinColumn(name = "id_repair_shop"), 25 inverseJoinColumns = @JoinColumn(name = "id_car_manufacturer")) 26 @ToString.Exclude 27 List<CarManufacturer> carManufacturerList; 23 28 24 29 @Override
Note:
See TracChangeset
for help on using the changeset viewer.