Ignore:
Timestamp:
07/07/23 12:14:58 (16 months ago)
Author:
HristijanMitic00 <hristijan.mitic.01@…>
Branches:
main
Parents:
1dd9226
Message:

First commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/project/fmo/app/projcetfmo/Model/CenaPK.java

    r1dd9226 rd14176d  
    1 package model;
     1package project.fmo.app.projcetfmo.Model;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.GeneratedValue;
    5 import jakarta.persistence.GenerationType;
    6 import jakarta.persistence.Id;
     3import javax.persistence.*;
    74
    85import java.io.Serializable;
     
    1310    @Column(name = "id_produkt")
    1411    @Id
    15     @GeneratedValue(strategy = GenerationType.IDENTITY)
    1612    private int idProdukt;
    1713    @Column(name = "cena_od")
    1814    @Id
    19     @GeneratedValue(strategy = GenerationType.IDENTITY)
    2015    private Date cenaOd;
     16
     17    public CenaPK (){}
     18    public CenaPK(Integer idProdukt, Date cenaOd) {
     19        this.idProdukt = idProdukt;
     20        this.cenaOd = cenaOd;
     21    }
    2122
    2223    public int getIdProdukt() {
Note: See TracChangeset for help on using the changeset viewer.