Changeset 23a2bc5 for src/main/java/com/example/autopartz/model/Part.java
- Timestamp:
- 01/03/23 03:14:50 (23 months ago)
- Branches:
- main
- Children:
- eaf0f1b
- Parents:
- 101cbe2
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.