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:
579 bytes
|
Rev | Line | |
---|
[31d67c0] | 1 | package com.proekt.model.Admin;
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | import com.proekt.model.Najava;
|
---|
| 5 |
|
---|
| 6 | import javax.persistence.Embeddable;
|
---|
| 7 | import javax.persistence.JoinColumn;
|
---|
| 8 | import javax.persistence.ManyToOne;
|
---|
| 9 | import java.io.Serializable;
|
---|
| 10 |
|
---|
| 11 | @Embeddable
|
---|
| 12 | public class AdminKey implements Serializable {
|
---|
| 13 |
|
---|
| 14 | @ManyToOne
|
---|
| 15 | @JoinColumn(name="korisnicko_ime")
|
---|
| 16 | public Najava user;
|
---|
| 17 |
|
---|
| 18 | public AdminKey(Najava user) {
|
---|
| 19 | this.user = user;
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | public AdminKey() {
|
---|
| 23 |
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | public Najava getUser() {
|
---|
| 27 | return user;
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | public void setUser(Najava user) {
|
---|
| 31 | this.user = user;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.