Changeset d4b888e for src/main/java/com/example/autopartz/model/Repair.java
- Timestamp:
- 01/06/23 15:26:00 (23 months ago)
- Branches:
- main
- Children:
- 9dcbf44
- Parents:
- f484b14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Repair.java
rf484b14 rd4b888e 18 18 @Id 19 19 @GeneratedValue(strategy = GenerationType.IDENTITY) 20 Integer ID_repair; 20 @Column(name = "ID_repair") 21 Integer id; 21 22 @OneToOne 22 23 @JoinColumn(name = "id_order") … … 34 35 this.serviceBook = serviceBook; 35 36 } 36 37 37 @Override 38 38 public boolean equals(Object o) { … … 40 40 if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false; 41 41 Repair repair = (Repair) o; 42 return ID_repair != null && Objects.equals(ID_repair, repair.ID_repair);42 return id != null && Objects.equals(id, repair.id); 43 43 } 44 44
Note:
See TracChangeset
for help on using the changeset viewer.