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

    r89865ae r4d67d70  
    77import org.hibernate.Hibernate;
    88
    9 import javax.persistence.Entity;
    10 import javax.persistence.Id;
    11 import javax.persistence.JoinColumn;
    12 import javax.persistence.ManyToOne;
     9import javax.persistence.*;
    1310import java.time.LocalDate;
    1411import java.util.Objects;
     
    2118public class Price {
    2219    @Id
     20    @GeneratedValue(strategy = GenerationType.IDENTITY)
    2321    Integer ID_price;
    2422    Integer amount;
     
    2826    @JoinColumn(name = "id_part")
    2927    Part part;
     28
     29    public Price(Integer amount, LocalDate price_from, Part part) {
     30        this.amount = amount;
     31        this.price_from = price_from;
     32        this.part = part;
     33    }
    3034
    3135    @Override
Note: See TracChangeset for help on using the changeset viewer.