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/Part.java

    reaf0f1b rfeffc2f  
    1818public class Part {
    1919    @Id
    20     Long ID_part;
    21     String part_name;
    22     String part_description;
     20    @Column(name = "ID_part")
     21    Long id;
     22    @Column(name = "part_name")
     23    String name;
     24    @Column(name = "part_description")
     25    String description;
    2326    @ManyToOne
    2427    @JoinColumn(name = "id_part_manufacturer")
    25     PartManufacturer partManufacturer;
     28    PartManufacturer manufacturer;
    2629    @ManyToMany
    2730    @JoinTable(name = "part_is_from_category", joinColumns =
     
    4851        if (o == null || Hibernate.getClass(this) != Hibernate.getClass(o)) return false;
    4952        Part part = (Part) o;
    50         return ID_part != null && Objects.equals(ID_part, part.ID_part);
     53        return id != null && Objects.equals(id, part.id);
    5154    }
    5255
Note: See TracChangeset for help on using the changeset viewer.