Changeset feffc2f for src/main/java/com/example/autopartz/model/Part.java
- Timestamp:
- 01/03/23 19:29:20 (23 months ago)
- Branches:
- main
- Children:
- 60de3eb
- Parents:
- eaf0f1b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Part.java
reaf0f1b rfeffc2f 18 18 public class Part { 19 19 @Id 20 Long ID_part; 21 String part_name; 22 String part_description; 20 @Column(name = "ID_part") 21 Long id; 22 @Column(name = "part_name") 23 String name; 24 @Column(name = "part_description") 25 String description; 23 26 @ManyToOne 24 27 @JoinColumn(name = "id_part_manufacturer") 25 PartManufacturer partManufacturer;28 PartManufacturer manufacturer; 26 29 @ManyToMany 27 30 @JoinTable(name = "part_is_from_category", joinColumns = … … 48 51 if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false; 49 52 Part part = (Part) o; 50 return ID_part != null && Objects.equals(ID_part, part.ID_part);53 return id != null && Objects.equals(id, part.id); 51 54 } 52 55
Note:
See TracChangeset
for help on using the changeset viewer.