Last change
on this file since 31d67c0 was 31d67c0, checked in by zlatko2810 <zlatko.stojanovski@…>, 22 months ago |
proekt
|
-
Property mode
set to
100644
|
File size:
883 bytes
|
Line | |
---|
1 | package com.proekt.model.Korisnik;
|
---|
2 | import lombok.Data;
|
---|
3 |
|
---|
4 | import javax.persistence.*;
|
---|
5 | @Data
|
---|
6 | @Table(name = "korisnik")
|
---|
7 | @Entity
|
---|
8 | public class Korisnik{
|
---|
9 |
|
---|
10 | @EmbeddedId
|
---|
11 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
12 | private KorisnikKey korisnikKey;
|
---|
13 |
|
---|
14 | @Column(name = "id_korisnik")
|
---|
15 | private int korisnicko_ime;
|
---|
16 |
|
---|
17 | public Korisnik(KorisnikKey korisnikKey, int korisnicko_ime) {
|
---|
18 | this.korisnikKey = korisnikKey;
|
---|
19 | this.korisnicko_ime = korisnicko_ime;
|
---|
20 | }
|
---|
21 |
|
---|
22 | public Korisnik() {
|
---|
23 |
|
---|
24 | }
|
---|
25 |
|
---|
26 | public KorisnikKey getKorisnikKey() {
|
---|
27 | return korisnikKey;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public void setKorisnikKey(KorisnikKey korisnikKey) {
|
---|
31 | this.korisnikKey = korisnikKey;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public int getKorisnicko_ime() {
|
---|
35 | return korisnicko_ime;
|
---|
36 | }
|
---|
37 |
|
---|
38 | public void setKorisnicko_ime(int korisnicko_ime) {
|
---|
39 | this.korisnicko_ime = korisnicko_ime;
|
---|
40 | }
|
---|
41 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.