Legend:
- Unmodified
- Added
- Removed
-
src/main/java/project/fmo/app/projcetfmo/Model/Telefonskibroj.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.util.Objects; 6 6 7 7 @Entity 8 @Table(schema = "project", name = "telefonskibroj", catalog = "db_202223z_va_prj_fmo") 8 9 @IdClass(TelefonskibrojPK.class) 9 10 public class Telefonskibroj { 10 @GeneratedValue(strategy = GenerationType.IDENTITY) 11 11 12 @Id 12 13 @Column(name = "id_korisnik") 13 14 private int idKorisnik; 14 @GeneratedValue(strategy = GenerationType.IDENTITY) 15 15 16 @Id 16 17 @Column(name = "telefonski_broj") 17 18 private String telefonskiBroj; 19 20 public Telefonskibroj(){} 21 22 public Telefonskibroj(TelefonskibrojPK telefonskibrojPK) { 23 this.idKorisnik = telefonskibrojPK.getIdKorisnik(); 24 this.telefonskiBroj = telefonskibrojPK.getTelefonskiBroj(); 25 } 18 26 19 27 public int getIdKorisnik() {
Note:
See TracChangeset
for help on using the changeset viewer.