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:
1023 bytes
|
Rev | Line | |
---|
[31d67c0] | 1 | package com.proekt.model.Vraboten;
|
---|
| 2 | import lombok.Data;
|
---|
| 3 |
|
---|
| 4 | import javax.persistence.*;
|
---|
| 5 | @Data
|
---|
| 6 | @Table
|
---|
| 7 | @Entity
|
---|
| 8 | public 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.