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:
774 bytes
|
Line | |
---|
1 | package com.proekt.model.Kontroler;
|
---|
2 |
|
---|
3 | import lombok.Data;
|
---|
4 |
|
---|
5 | import javax.persistence.*;
|
---|
6 |
|
---|
7 | @Data
|
---|
8 | @Table
|
---|
9 | @Entity
|
---|
10 | public class Kontroler{
|
---|
11 |
|
---|
12 | private int id_kontroler;
|
---|
13 |
|
---|
14 | @EmbeddedId
|
---|
15 | private KontrolerKey kontrolerKey;
|
---|
16 |
|
---|
17 | public Kontroler(int id_kontroler, KontrolerKey kontrolerKey) {
|
---|
18 | this.id_kontroler = id_kontroler;
|
---|
19 | this.kontrolerKey = kontrolerKey;
|
---|
20 | }
|
---|
21 |
|
---|
22 | public Kontroler() {
|
---|
23 |
|
---|
24 | }
|
---|
25 |
|
---|
26 | public int getId_kontroler() {
|
---|
27 | return id_kontroler;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public void setId_kontroler(int id_kontroler) {
|
---|
31 | this.id_kontroler = id_kontroler;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public KontrolerKey getKontrolerKey() {
|
---|
35 | return kontrolerKey;
|
---|
36 | }
|
---|
37 |
|
---|
38 | public void setKontrolerKey(KontrolerKey kontrolerKey) {
|
---|
39 | this.kontrolerKey = kontrolerKey;
|
---|
40 | }
|
---|
41 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.