Ignore:
Timestamp:
01/07/23 01:51:16 (18 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/Part.java

    r89865ae r4d67d70  
    1818public class Part {
    1919    @Id
     20    @GeneratedValue(strategy = GenerationType.IDENTITY)
    2021    @Column(name = "ID_part")
    2122    Integer id;
     
    4647    List<Car> carList;
    4748
     49    public Part(String name, String description, PartManufacturer manufacturer, List<Category> categoryList, List<Warehouse> warehouseList, List<Car> carList) {
     50        this.name = name;
     51        this.description = description;
     52        this.manufacturer = manufacturer;
     53        this.categoryList = categoryList;
     54        this.warehouseList = warehouseList;
     55        this.carList = carList;
     56    }
     57
    4858    @Override
    4959    public boolean equals(Object o) {
Note: See TracChangeset for help on using the changeset viewer.