source: source/freeparkingspace/src/main/java/com/proekt/model/Vraboten/Vraboten.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: 1023 bytes
Line 
1package com.proekt.model.Vraboten;
2import lombok.Data;
3
4import javax.persistence.*;
5@Data
6@Table
7@Entity
8public class Vraboten{
9
10 private int idVraboten;
11
12 @Column(name = "uloga")
13 private String uloga;
14
15 @EmbeddedId
16 @GeneratedValue(strategy = GenerationType.IDENTITY)
17 private VrabotenKey vrabotenKey;
18
19
20 public Vraboten() {
21 }
22
23 public Vraboten(int idVraboten, String uloga, VrabotenKey vrabotenKey) {
24 this.vrabotenKey = vrabotenKey;
25 this.idVraboten = idVraboten;
26 this.uloga = uloga;
27 }
28
29 public VrabotenKey getVrabotenKey() {
30 return vrabotenKey;
31 }
32
33 public void setVrabotenKey(VrabotenKey vrabotenKey) {
34 this.vrabotenKey = vrabotenKey;
35 }
36
37 public int getIdVraboten() {
38 return idVraboten;
39 }
40
41 public void setIdVraboten(int idVraboten) {
42 this.idVraboten = idVraboten;
43 }
44
45 public String getUloga() {
46 return uloga;
47 }
48
49 public void setUloga(String uloga) {
50 this.uloga = uloga;
51 }
52}
Note: See TracBrowser for help on using the repository browser.