Last change
on this file was 31d67c0, checked in by zlatko2810 <zlatko.stojanovski@…>, 2 years ago |
proekt
|
-
Property mode
set to
100644
|
File size:
593 bytes
|
Line | |
---|
1 | package com.proekt.model.Kontroler;
|
---|
2 |
|
---|
3 | import com.proekt.model.Najava;
|
---|
4 |
|
---|
5 | import javax.persistence.Embeddable;
|
---|
6 | import javax.persistence.JoinColumn;
|
---|
7 | import javax.persistence.ManyToOne;
|
---|
8 | import java.io.Serializable;
|
---|
9 |
|
---|
10 | @Embeddable
|
---|
11 | public class KontrolerKey implements Serializable {
|
---|
12 |
|
---|
13 | @ManyToOne
|
---|
14 | @JoinColumn(name="korisnicko_ime")
|
---|
15 | public Najava user;
|
---|
16 |
|
---|
17 | public KontrolerKey(Najava user) {
|
---|
18 | this.user = user;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public KontrolerKey() {
|
---|
22 |
|
---|
23 | }
|
---|
24 |
|
---|
25 | public Najava getUser() {
|
---|
26 | return user;
|
---|
27 | }
|
---|
28 |
|
---|
29 | public void setUser(Najava user) {
|
---|
30 | this.user = user;
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.