Ignore:
Timestamp:
01/06/23 02:51:45 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
d4b888e
Parents:
1bd8d1e
Message:

Added full functionality for creating order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/model/Car.java

    r1bd8d1e rf484b14  
    1818public class Car {
    1919    @Id
    20     Integer ID_car;
     20    @Column(name = "ID_car")
     21    Integer id;
    2122    Integer in_production_since;
    2223    Integer in_production_till;
     
    3233        if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
    3334        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);
    3536    }
    3637
Note: See TracChangeset for help on using the changeset viewer.