Legend:
- Unmodified
- Added
- Removed
-
src/main/java/project/fmo/app/projcetfmo/Model/Cena.java
r1dd9226 rd14176d 1 package model;1 package project.fmo.app.projcetfmo.Model; 2 2 3 import ja karta.persistence.*;3 import javax.persistence.*; 4 4 5 5 import java.sql.Date; … … 7 7 8 8 @Entity 9 @Table(schema = "project", name = "cena", catalog = "db_202223z_va_prj_fmo") 9 10 @IdClass(CenaPK.class) 10 11 public class Cena { 11 @GeneratedValue(strategy = GenerationType.IDENTITY)12 12 @Id 13 13 @Column(name = "id_produkt") 14 private int idProdukt; 15 @GeneratedValue(strategy = GenerationType.IDENTITY) 14 private int idProdukt; 16 15 @Id 17 16 @Column(name = "cena_od") … … 23 22 @Column(name = "iznos") 24 23 private int iznos; 24 25 public Cena(){} 26 public Cena(int idProdukt, Date cenaOd, Date cenaDo, int iznos) { 27 this.idProdukt = idProdukt; 28 this.cenaOd = cenaOd; 29 this.cenaDo = cenaDo; 30 this.iznos = iznos; 31 } 32 33 public Cena(int idProdukt, Date cenaOd, int iznos) { 34 this.idProdukt = idProdukt; 35 this.cenaOd = cenaOd; 36 this.iznos = iznos; 37 } 25 38 26 39 public int getIdProdukt() {
Note:
See TracChangeset
for help on using the changeset viewer.