Changeset f484b14 for src/main/java/com/example/autopartz/model/Car.java
- Timestamp:
- 01/06/23 02:51:45 (23 months ago)
- Branches:
- main
- Children:
- d4b888e
- Parents:
- 1bd8d1e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Car.java
r1bd8d1e rf484b14 18 18 public class Car { 19 19 @Id 20 Integer ID_car; 20 @Column(name = "ID_car") 21 Integer id; 21 22 Integer in_production_since; 22 23 Integer in_production_till; … … 32 33 if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false; 33 34 Car car = (Car) o; 34 return ID_car != null && Objects.equals(ID_car, car.ID_car);35 return id != null && Objects.equals(id, car.id); 35 36 } 36 37
Note:
See TracChangeset
for help on using the changeset viewer.