Changeset 23a2bc5 for src/main/java/com/example/autopartz/model
- Timestamp:
- 01/03/23 03:14:50 (23 months ago)
- Branches:
- main
- Children:
- eaf0f1b
- Parents:
- 101cbe2
- Location:
- src/main/java/com/example/autopartz/model
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Part.java
r101cbe2 r23a2bc5 1 1 package com.example.autopartz.model; 2 2 3 import jakarta.persistence.Entity; 4 import jakarta.persistence.Id; 5 import jakarta.persistence.JoinColumn; 6 import jakarta.persistence.ManyToOne; 3 import jakarta.persistence.*; 7 4 import lombok.*; 8 5 import org.hibernate.Hibernate; 9 6 7 import java.util.ArrayList; 8 import java.util.List; 10 9 import java.util.Objects; 11 10 … … 23 22 @JoinColumn(name = "id_part_manufacturer") 24 23 PartManufacturer partManufacturer; 24 @ManyToMany 25 @JoinTable(name = "part_is_from_category", joinColumns = 26 @JoinColumn(name = "id_part"), 27 inverseJoinColumns = @JoinColumn(name = "id_category")) 28 @ToString.Exclude 29 List<Category> categoryList; 25 30 26 31 @Override -
src/main/java/com/example/autopartz/model/RepairShopReviewsSummary.java
r101cbe2 r23a2bc5 20 20 @RequiredArgsConstructor 21 21 @Immutable 22 @Table(name = "repair_shop_reviews_summary") 23 @Subselect("select * from repair_shop_reviews_summary") 22 @Table(name = "`repair_shop_reviews_summary`") 24 23 public class RepairShopReviewsSummary implements Serializable { 25 24 @Serial
Note:
See TracChangeset
for help on using the changeset viewer.