- 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/RepairShop.java
reaf0f1b rfeffc2f 16 16 public class RepairShop { 17 17 @Id 18 Long ID_repair_shop; 19 String rs_name; 20 String rs_location; 21 String rs_phone_number; 18 @Column(name = "ID_repair_shop") 19 Long id; 20 @Column(name = "rs_name") 21 String name; 22 @Column(name = "rs_location") 23 String location; 24 @Column(name = "rs_phone_number") 25 String number; 22 26 @ManyToMany 23 27 @JoinTable(name = "repair_shop_is_authorized_for_car_make", joinColumns = … … 32 36 if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false; 33 37 RepairShop that = (RepairShop) o; 34 return ID_repair_shop != null && Objects.equals(ID_repair_shop, that.ID_repair_shop);38 return id != null && Objects.equals(id, that.id); 35 39 } 36 40
Note:
See TracChangeset
for help on using the changeset viewer.