Ignore:
Timestamp:
01/06/23 15:26:00 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
9dcbf44
Parents:
f484b14
Message:

Added full functionality for adding review

File:
1 edited

Legend:

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

    rf484b14 rd4b888e  
    1818    @Id
    1919    @GeneratedValue(strategy = GenerationType.IDENTITY)
    20     Integer ID_repair;
     20    @Column(name = "ID_repair")
     21    Integer id;
    2122    @OneToOne
    2223    @JoinColumn(name = "id_order")
     
    3435        this.serviceBook = serviceBook;
    3536    }
    36 
    3737    @Override
    3838    public boolean equals(Object o) {
     
    4040        if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
    4141        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);
    4343    }
    4444
Note: See TracChangeset for help on using the changeset viewer.