Ignore:
Timestamp:
01/07/23 18:37:26 (23 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/Warehouse.java

    r37966cf r84652fb  
    77import org.hibernate.Hibernate;
    88
    9 import javax.persistence.Column;
    10 import javax.persistence.Entity;
    11 import javax.persistence.Id;
     9import javax.persistence.*;
    1210import java.util.Objects;
    1311
     
    2018    @Id
    2119    @Column(name = "id_warehouse")
     20    @GeneratedValue(strategy = GenerationType.IDENTITY)
    2221    Integer id;
    2322    @Column(name = "warehouse_location")
    2423    String location;
     24
     25    public Warehouse(String name) {
     26        this.location = name;
     27    }
    2528
    2629    @Override
Note: See TracChangeset for help on using the changeset viewer.