source: source/freeparkingspace/src/main/java/com/proekt/model/Vraboten/VrabotenKey.java

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

proekt

  • Property mode set to 100644
File size: 589 bytes
Line 
1package com.proekt.model.Vraboten;
2
3import com.proekt.model.Najava;
4
5import javax.persistence.Embeddable;
6import javax.persistence.JoinColumn;
7import javax.persistence.ManyToOne;
8import java.io.Serializable;
9
10@Embeddable
11public class VrabotenKey implements Serializable {
12
13 @ManyToOne
14 @JoinColumn(name="korisnicko_ime")
15 public Najava user;
16
17 public VrabotenKey(Najava user) {
18 this.user = user;
19 }
20
21 public VrabotenKey() {
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.