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

    r37966cf r84652fb  
    77import org.hibernate.Hibernate;
    88
    9 import javax.persistence.Column;
    10 import javax.persistence.Entity;
    11 import javax.persistence.Id;
    12 import javax.persistence.Table;
     9import javax.persistence.*;
    1310import java.util.Objects;
    1411
     
    2118public class PartManufacturer {
    2219    @Id
     20    @GeneratedValue(strategy = GenerationType.IDENTITY)
    2321    @Column(name = "id_part_manufacturer")
    2422    Integer id;
     
    2624    String name;
    2725    String pm_location;
     26
     27    public PartManufacturer(String name, String location) {
     28        this.name = name;
     29        this.pm_location = location;
     30    }
    2831
    2932    @Override
Note: See TracChangeset for help on using the changeset viewer.