source: source/freeparkingspace/src/main/java/com/proekt/model/Najava.java

Last change on this file was 31d67c0, checked in by zlatko2810 <zlatko.stojanovski@…>, 22 months ago

proekt

  • Property mode set to 100644
File size: 2.1 KB
Line 
1package com.proekt.model;
2import lombok.Data;
3
4import javax.persistence.*;
5
6@Table(name = "najava")
7@Data
8@Entity
9
10@Inheritance(strategy = InheritanceType.JOINED)
11public class Najava {
12 @Id
13 @Column (nullable = false,unique = true, length = 150)
14 private String korisnickoIme;
15
16 @Column (nullable = false,unique = true, length = 13)
17 private String embg;
18 @Column (nullable = false,unique = true, length = 150)
19 private String brTel;
20 @Column (nullable = false,unique = true, length = 50)
21 private String email;
22 @Column (nullable = false,unique = true, length = 150)
23 private String password;
24 @Column (nullable = false,unique = true, length = 150)
25 private String ime;
26 @Column (nullable = false,unique = true, length = 150)
27 private String prezime;
28
29 public Najava() {
30 }
31
32 public Najava(String korisnickoIme, String embg, String brTel, String email, String password, String ime, String prezime) {
33 this.korisnickoIme = korisnickoIme;
34 this.embg = embg;
35 this.brTel = brTel;
36 this.email = email;
37 this.password = password;
38 this.ime = ime;
39 this.prezime = prezime;
40 }
41
42 public String getKorisnickoIme() {
43 return korisnickoIme;
44 }
45
46 public void setKorisnickoIme(String korisnickoIme) {
47 this.korisnickoIme = korisnickoIme;
48 }
49
50 public String getEmbg() {
51 return embg;
52 }
53
54 public void setEmbg(String embg) {
55 this.embg = embg;
56 }
57
58 public String getBrTel() {
59 return brTel;
60 }
61
62 public void setBrTel(String brTel) {
63 this.brTel = brTel;
64 }
65
66 public String getEmail() {
67 return email;
68 }
69
70 public void setEmail(String email) {
71 this.email = email;
72 }
73
74 public String getPassword() {
75 return password;
76 }
77
78 public void setPassword(String password) {
79 this.password = password;
80 }
81
82 public String getIme() {
83 return ime;
84 }
85
86 public void setIme(String ime) {
87 this.ime = ime;
88 }
89
90 public String getPrezime() {
91 return prezime;
92 }
93
94 public void setPrezime(String prezime) {
95 this.prezime = prezime;
96 }
97}
Note: See TracBrowser for help on using the repository browser.