Ignore:
Timestamp:
01/03/23 19:29:20 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
60de3eb
Parents:
eaf0f1b
Message:

Added some views and functionalities

File:
1 edited

Legend:

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

    reaf0f1b rfeffc2f  
    1616public class RepairShop {
    1717    @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;
    2226    @ManyToMany
    2327    @JoinTable(name = "repair_shop_is_authorized_for_car_make", joinColumns =
     
    3236        if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
    3337        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);
    3539    }
    3640
Note: See TracChangeset for help on using the changeset viewer.