Legend:
- Unmodified
- Added
- Removed
-
src/main/java/project/fmo/app/projcetfmo/Model/CenaPK.java
r1dd9226 rd14176d 1 package model;1 package project.fmo.app.projcetfmo.Model; 2 2 3 import jakarta.persistence.Column; 4 import jakarta.persistence.GeneratedValue; 5 import jakarta.persistence.GenerationType; 6 import jakarta.persistence.Id; 3 import javax.persistence.*; 7 4 8 5 import java.io.Serializable; … … 13 10 @Column(name = "id_produkt") 14 11 @Id 15 @GeneratedValue(strategy = GenerationType.IDENTITY)16 12 private int idProdukt; 17 13 @Column(name = "cena_od") 18 14 @Id 19 @GeneratedValue(strategy = GenerationType.IDENTITY)20 15 private Date cenaOd; 16 17 public CenaPK (){} 18 public CenaPK(Integer idProdukt, Date cenaOd) { 19 this.idProdukt = idProdukt; 20 this.cenaOd = cenaOd; 21 } 21 22 22 23 public int getIdProdukt() {
Note:
See TracChangeset
for help on using the changeset viewer.