Ignore:
Timestamp:
01/07/23 01:51:16 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
ed7ef92
Parents:
89865ae
Message:

Final touches

File:
1 edited

Legend:

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

    r89865ae r4d67d70  
    1919public class Warehouse {
    2020    @Id
    21     Integer ID_warehouse;
     21    @Column(name = "id_warehouse")
     22    Integer id;
    2223    @Column(name = "warehouse_location")
    2324    String location;
     
    2829        if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
    2930        Warehouse warehouse = (Warehouse) o;
    30         return ID_warehouse != null && Objects.equals(ID_warehouse, warehouse.ID_warehouse);
     31        return id != null && Objects.equals(id, warehouse.id);
    3132    }
    3233
Note: See TracChangeset for help on using the changeset viewer.