Ignore:
Timestamp:
01/07/23 18:37:26 (18 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
5e7345e
Parents:
37966cf
Message:

Admin views for adding things to the database

File:
1 edited

Legend:

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

    r37966cf r84652fb  
    1818public class Car {
    1919    @Id
     20    @GeneratedValue(strategy = GenerationType.IDENTITY)
    2021    @Column(name = "ID_car")
    2122    Integer id;
     
    2728    @JoinColumn(name = "id_car_manufacturer")
    2829    CarManufacturer car_manufacturer;
     30
     31    public Car(Integer in_production_since, Integer in_production_till, String cartype, CarManufacturer car_manufacturer) {
     32        this.in_production_since = in_production_since;
     33        this.in_production_till = in_production_till;
     34        this.cartype = cartype;
     35        this.car_manufacturer = car_manufacturer;
     36    }
    2937
    3038    @Override
Note: See TracChangeset for help on using the changeset viewer.