Changeset d14176d for src/main/java/project/fmo/app/projcetfmo/Model
- Timestamp:
- 07/07/23 12:14:58 (19 months ago)
- Branches:
- main
- Parents:
- 1dd9226
- Location:
- src/main/java/project/fmo/app/projcetfmo/Model
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/project/fmo/app/projcetfmo/Model/AdminKorisnik.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; … … 8 8 @Table(name = "admin_korisnik", schema = "project", catalog = "db_202223z_va_prj_fmo") 9 9 public class AdminKorisnik { 10 @GeneratedValue(strategy = GenerationType.IDENTITY) 10 11 11 @Id 12 12 @Column(name = "id_korisnik") -
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() { -
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() { -
src/main/java/project/fmo/app/projcetfmo/Model/Dostava.java
r1dd9226 rd14176d 1 package model;1 package project.fmo.app.projcetfmo.Model; 2 2 3 import jakarta.persistence.*; 3 import project.fmo.app.projcetfmo.Service.impl.DostavaServiceImpl; 4 5 import javax.persistence.*; 4 6 5 7 import java.sql.Date; … … 7 9 8 10 @Entity 11 @Table(schema = "project", name = "dostava", catalog = "db_202223z_va_prj_fmo") 9 12 public class Dostava { 10 @Basic 11 @Column(name = "id_korisnik") 12 private int idKorisnik; 13 @Basic 14 @Column(name = "id_naracka") 15 private int idNaracka; 16 @GeneratedValue(strategy = GenerationType.IDENTITY) 13 @ManyToOne 14 @JoinColumn(name = "id_korisnik") 15 private Dostavuvac dostavuvac; 16 @OneToOne 17 @JoinColumn(name = "id_naracka") 18 private Naracka naracka; 17 19 @Id 18 20 @Column(name = "id_dostava") … … 25 27 private String status; 26 28 29 public Dostava (){} 30 31 public Dostava(Dostavuvac dostavuvac, Naracka naracka, int idDostava, Date datum, String status) { 32 this.dostavuvac = dostavuvac; 33 this.naracka = naracka; 34 this.idDostava = idDostava; 35 this.datum = datum; 36 this.status = status; 37 } 38 27 39 public int getIdKorisnik() { 28 return idKorisnik;40 return dostavuvac.getIdKorisnik(); 29 41 } 30 42 31 43 public void setIdKorisnik(int idKorisnik) { 32 this. idKorisnik = idKorisnik;44 this.dostavuvac.setIdKorisnik(idKorisnik); 33 45 } 34 46 35 47 public int getIdNaracka() { 36 return idNaracka;48 return naracka.getIdNaracka(); 37 49 } 38 50 39 51 public void setIdNaracka(int idNaracka) { 40 this. idNaracka = idNaracka;52 this.naracka.setIdNaracka(idNaracka); 41 53 } 42 54 … … 70 82 if (o == null || getClass() != o.getClass()) return false; 71 83 Dostava dostava = (Dostava) o; 72 return idKorisnik == dostava.idKorisnik && idNaracka == dostava.idNaracka && idDostava == dostava.idDostava && Objects.equals(datum, dostava.datum) && Objects.equals(status, dostava.status);84 return dostavuvac == dostava.dostavuvac && naracka == dostava.naracka && idDostava == dostava.idDostava && Objects.equals(datum, dostava.datum) && Objects.equals(status, dostava.status); 73 85 } 74 86 75 87 @Override 76 88 public int hashCode() { 77 return Objects.hash( idKorisnik, idNaracka, idDostava, datum, status);89 return Objects.hash(dostavuvac, naracka, idDostava, datum, status); 78 90 } 79 91 } -
src/main/java/project/fmo/app/projcetfmo/Model/Dostavuvac.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 = "dostavuvac", catalog = "db_202223z_va_prj_fmo") 8 9 public class Dostavuvac { 9 @GeneratedValue(strategy = GenerationType.IDENTITY) 10 10 11 @Id 11 12 @Column(name = "id_korisnik") 12 13 private int idKorisnik; 14 15 public Dostavuvac(){} 13 16 14 17 public int getIdKorisnik() { -
src/main/java/project/fmo/app/projcetfmo/Model/Kategorija.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 = "kategorija", catalog = "db_202223z_va_prj_fmo") 8 9 public class Kategorija { 9 10 @GeneratedValue(strategy = GenerationType.IDENTITY) … … 14 15 @Column(name = "ime") 15 16 private String ime; 17 18 19 public Kategorija(){} 20 public Kategorija(String ime) { 21 this.ime = ime; 22 } 16 23 17 24 public int getIdKategorija() { -
src/main/java/project/fmo/app/projcetfmo/Model/Korisnik.java
r1dd9226 rd14176d 1 package model;1 package project.fmo.app.projcetfmo.Model; 2 2 3 import jakarta.persistence.*;4 3 4 import org.springframework.security.core.GrantedAuthority; 5 import org.springframework.security.core.userdetails.UserDetails; 6 7 import javax.persistence.*; 5 8 import java.sql.Timestamp; 9 import java.util.Collection; 10 import java.util.Collections; 6 11 import java.util.Objects; 7 12 8 13 @Entity 9 public class Korisnik { 14 @Table(schema = "project", name = "korisnik", catalog = "db_202223z_va_prj_fmo") 15 public class Korisnik implements UserDetails { 10 16 @GeneratedValue(strategy = GenerationType.IDENTITY) 11 17 @Id … … 21 27 @Column(name = "kreiran_na_datum") 22 28 private Timestamp kreiranNaDatum; 29 30 31 public Korisnik(){ 32 33 } 34 public Korisnik(String imePrezime, String passwordKorisnik, Timestamp kreiranNaDatum) { 35 this.imePrezime = imePrezime; 36 this.passwordKorisnik = passwordKorisnik; 37 this.kreiranNaDatum = kreiranNaDatum; 38 } 23 39 24 40 public int getIdKorisnik() { … … 66 82 return Objects.hash(idKorisnik, imePrezime, passwordKorisnik, kreiranNaDatum); 67 83 } 84 85 @Override 86 public Collection<? extends GrantedAuthority> getAuthorities() { 87 return null; 88 } 89 90 @Override 91 public String getPassword() { 92 return null; 93 } 94 95 @Override 96 public String getUsername() { 97 return null; 98 } 99 100 @Override 101 public boolean isAccountNonExpired() { 102 return false; 103 } 104 105 @Override 106 public boolean isAccountNonLocked() { 107 return false; 108 } 109 110 @Override 111 public boolean isCredentialsNonExpired() { 112 return false; 113 } 114 115 @Override 116 public boolean isEnabled() { 117 return false; 118 } 68 119 } -
src/main/java/project/fmo/app/projcetfmo/Model/Kupuvac.java
r1dd9226 rd14176d 1 package model;1 package project.fmo.app.projcetfmo.Model; 2 2 3 import jakarta.persistence.*;4 3 4 import javax.persistence.*; 5 5 import java.util.Objects; 6 6 7 7 @Entity 8 @Table(schema = "project", name = "kupuvac", catalog = "db_202223z_va_prj_fmo") 8 9 public class Kupuvac { 9 @GeneratedValue(strategy = GenerationType.IDENTITY) 10 10 11 @Id 11 12 @Column(name = "id_korisnik") … … 14 15 @Column(name = "mail") 15 16 private String mail; 17 18 public Kupuvac(int idKorisnik, String mail) { 19 this.idKorisnik=idKorisnik; 20 this.mail=mail; 21 } 22 23 public Kupuvac() { 24 } 16 25 17 26 public int getIdKorisnik() { -
src/main/java/project/fmo/app/projcetfmo/Model/Magacin.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 = "magacin", catalog = "db_202223z_va_prj_fmo") 8 9 public class Magacin { 9 @GeneratedValue(strategy = GenerationType.IDENTITY) 10 10 11 @Id 11 12 @Column(name = "id_magacin") -
src/main/java/project/fmo/app/projcetfmo/Model/Magacioner.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 = "magacioner", catalog = "db_202223z_va_prj_fmo") 8 9 public class Magacioner { 9 @GeneratedValue(strategy = GenerationType.IDENTITY)10 10 @Id 11 11 @Column(name = "id_korisnik") 12 12 private int idKorisnik; 13 @ Basic14 @ Column(name = "id_magacin")15 private int idMagacin;13 @ManyToOne 14 @JoinColumn(name = "id_magacin") 15 private Magacin magacin; 16 16 17 17 public int getIdKorisnik() { … … 23 23 } 24 24 25 public int getIdMagacin() {26 return idMagacin;25 public Magacin getMagacin() { 26 return magacin; 27 27 } 28 28 29 public void set IdMagacin(int idMagacin) {30 this. idMagacin = idMagacin;29 public void setMagacin(Magacin magacin) { 30 this.magacin = magacin; 31 31 } 32 32 … … 36 36 if (o == null || getClass() != o.getClass()) return false; 37 37 Magacioner that = (Magacioner) o; 38 return idKorisnik == that.idKorisnik && idMagacin == that.idMagacin;38 return idKorisnik == that.idKorisnik && magacin == that.magacin; 39 39 } 40 40 41 41 @Override 42 42 public int hashCode() { 43 return Objects.hash(idKorisnik, idMagacin);43 return Objects.hash(idKorisnik, magacin); 44 44 } 45 45 } -
src/main/java/project/fmo/app/projcetfmo/Model/Naracka.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 = "naracka", catalog = "db_202223z_va_prj_fmo") 9 10 public class Naracka { 10 11 @GeneratedValue(strategy = GenerationType.IDENTITY) … … 24 25 @Column(name = "adresa") 25 26 private String adresa; 26 @Basic 27 @Column(name = "id_korisnik") 28 private int idKorisnik; 27 @ManyToOne 28 @JoinColumn(name = "id_korisnik") 29 private Kupuvac kupuvac; 30 31 public Naracka(){} 32 33 public Naracka(int vkupnoSuma, Date datum, String status, String adresa, Kupuvac kupuvac) { 34 this.vkupnoSuma = vkupnoSuma; 35 this.datum = datum; 36 this.status = status; 37 this.adresa = adresa; 38 this.kupuvac = kupuvac; 39 } 29 40 30 41 public int getIdNaracka() { … … 69 80 70 81 public int getIdKorisnik() { 71 return idKorisnik;82 return kupuvac.getIdKorisnik(); 72 83 } 73 84 74 85 public void setIdKorisnik(int idKorisnik) { 75 this. idKorisnik = idKorisnik;86 this.kupuvac.setIdKorisnik(idKorisnik); 76 87 } 77 88 … … 81 92 if (o == null || getClass() != o.getClass()) return false; 82 93 Naracka naracka = (Naracka) o; 83 return idNaracka == naracka.idNaracka && vkupnoSuma == naracka.vkupnoSuma && idKorisnik == naracka.idKorisnik&& Objects.equals(datum, naracka.datum) && Objects.equals(status, naracka.status) && Objects.equals(adresa, naracka.adresa);94 return idNaracka == naracka.idNaracka && vkupnoSuma == naracka.vkupnoSuma && kupuvac == naracka.kupuvac && Objects.equals(datum, naracka.datum) && Objects.equals(status, naracka.status) && Objects.equals(adresa, naracka.adresa); 84 95 } 85 96 86 97 @Override 87 98 public int hashCode() { 88 return Objects.hash(idNaracka, vkupnoSuma, datum, status, adresa, idKorisnik);99 return Objects.hash(idNaracka, vkupnoSuma, datum, status, adresa, kupuvac); 89 100 } 90 101 } -
src/main/java/project/fmo/app/projcetfmo/Model/NarackaSodrziProdukt.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; … … 9 9 @IdClass(NarackaSodrziProduktPK.class) 10 10 public class NarackaSodrziProdukt { 11 @GeneratedValue(strategy = GenerationType.IDENTITY)12 11 @Id 13 12 @Column(name = "id_produkt") 14 13 private int idProdukt; 15 @GeneratedValue(strategy = GenerationType.IDENTITY)16 14 @Id 17 15 @Column(name = "id_naracka") … … 23 21 @Column(name = "cena") 24 22 private int cena; 23 24 public NarackaSodrziProdukt(){} 25 26 public NarackaSodrziProdukt(int idProdukt, int idNaracka, int kolicina, int cena) { 27 this.idProdukt = idProdukt; 28 this.idNaracka = idNaracka; 29 this.kolicina = kolicina; 30 this.cena = cena; 31 } 25 32 26 33 public int getIdProdukt() { -
src/main/java/project/fmo/app/projcetfmo/Model/NarackaSodrziProduktPK.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.*; 4 7 5 8 6 import java.io.Serializable; … … 12 10 @Column(name = "id_produkt") 13 11 @Id 14 @GeneratedValue(strategy = GenerationType.IDENTITY)15 12 private int idProdukt; 16 13 @Column(name = "id_naracka") 17 14 @Id 18 @GeneratedValue(strategy = GenerationType.IDENTITY)19 15 private int idNaracka; 16 17 public NarackaSodrziProduktPK(){} 20 18 21 19 public int getIdProdukt() { -
src/main/java/project/fmo/app/projcetfmo/Model/Produkt.java
r1dd9226 rd14176d 1 package model;1 package project.fmo.app.projcetfmo.Model; 2 2 3 import jakarta.persistence.*; 3 import javax.persistence.*; 4 import org.springframework.boot.autoconfigure.kafka.KafkaProperties; 4 5 5 6 import java.util.Objects; 6 7 7 8 @Entity 9 @Table(schema = "project", name = "produkt", catalog = "db_202223z_va_prj_fmo") 8 10 public class Produkt { 9 11 @GeneratedValue(strategy = GenerationType.IDENTITY) … … 17 19 @Column(name = "opis") 18 20 private String opis; 19 @Basic 20 @Column(name = "id_korisnik") 21 private int idKorisnik; 21 22 @ManyToOne 23 @JoinColumn(name = "id_korisnik") 24 private AdminKorisnik adminKorisnik; 25 26 public Produkt(){} 27 28 public Produkt(String ime, String opis, AdminKorisnik adminKorisnik) { 29 this.ime = ime; 30 this.opis = opis; 31 this.adminKorisnik = adminKorisnik; 32 } 22 33 23 34 public int getIdProdukt() { … … 46 57 47 58 public int getIdKorisnik() { 48 return idKorisnik;59 return adminKorisnik.getIdKorisnik(); 49 60 } 50 61 51 public void setIdKorisnik( intidKorisnik) {52 this. idKorisnik = idKorisnik;62 public void setIdKorisnik(AdminKorisnik idKorisnik) { 63 this.adminKorisnik = idKorisnik; 53 64 } 54 65 … … 58 69 if (o == null || getClass() != o.getClass()) return false; 59 70 Produkt produkt = (Produkt) o; 60 return idProdukt == produkt.idProdukt && idKorisnik == produkt.idKorisnik && Objects.equals(ime, produkt.ime) && Objects.equals(opis, produkt.opis);71 return idProdukt == produkt.idProdukt && adminKorisnik == produkt.adminKorisnik && Objects.equals(ime, produkt.ime) && Objects.equals(opis, produkt.opis); 61 72 } 62 73 63 74 @Override 64 75 public int hashCode() { 65 return Objects.hash(idProdukt, ime, opis, idKorisnik);76 return Objects.hash(idProdukt, ime, opis, adminKorisnik); 66 77 } 67 78 } -
src/main/java/project/fmo/app/projcetfmo/Model/ProduktEOdKategorija.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; … … 9 9 @IdClass(ProduktEOdKategorijaPK.class) 10 10 public class ProduktEOdKategorija { 11 @GeneratedValue(strategy = GenerationType.IDENTITY)12 11 @Id 13 12 @Column(name = "id_produkt") 14 13 private int idProdukt; 15 @GeneratedValue(strategy = GenerationType.IDENTITY)16 14 @Id 17 15 @Column(name = "id_kategorija") 18 16 private int idKategorija; 17 18 public ProduktEOdKategorija(int idProdukt, int idKategorija) { 19 this.idProdukt = idProdukt; 20 this.idKategorija = idKategorija; 21 } 22 23 public ProduktEOdKategorija() { 24 } 25 26 public ProduktEOdKategorija(ProduktEOdKategorijaPK produktEOdKategorijaPK) { 27 this.idKategorija= produktEOdKategorijaPK.getIdKategorija(); 28 this.idProdukt=produktEOdKategorijaPK.getIdProdukt(); 29 } 19 30 20 31 public int getIdProdukt() { -
src/main/java/project/fmo/app/projcetfmo/Model/ProduktEOdKategorijaPK.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.*; 4 7 5 8 6 import java.io.Serializable; … … 12 10 @Column(name = "id_produkt") 13 11 @Id 14 @GeneratedValue(strategy = GenerationType.IDENTITY)15 12 private int idProdukt; 16 13 @Column(name = "id_kategorija") 17 14 @Id 18 @GeneratedValue(strategy = GenerationType.IDENTITY) 15 19 16 private int idKategorija; 17 18 19 public ProduktEOdKategorijaPK(){} 20 public ProduktEOdKategorijaPK(int idProdukt, int idKategorija) { 21 this.idKategorija=idKategorija; 22 this.idProdukt=idProdukt; 23 } 20 24 21 25 public int getIdProdukt() { -
src/main/java/project/fmo/app/projcetfmo/Model/ProduktEVoMagacin.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; -
src/main/java/project/fmo/app/projcetfmo/Model/ProduktEVoMagacinPK.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.*; 4 7 5 8 6 import java.io.Serializable; -
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() { -
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() { -
src/main/java/project/fmo/app/projcetfmo/Model/exception/InvalidUserCredentialsException.java
r1dd9226 rd14176d 1 package project.fmo.app.projcetfmo.Model.exception;public class InvalidUserCredentialsException { 1 package project.fmo.app.projcetfmo.Model.exception; 2 3 public class InvalidUserCredentialsException extends RuntimeException { 4 5 public InvalidUserCredentialsException() { 6 super("Invalid user credentials exception"); 7 } 2 8 }
Note:
See TracChangeset
for help on using the changeset viewer.