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