Last change
on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago |
all files
|
-
Property mode
set to
100644
|
File size:
611 bytes
|
Line | |
---|
1 | package com.example.demo.model.Controles;
|
---|
2 |
|
---|
3 | import lombok.Data;
|
---|
4 |
|
---|
5 | import javax.persistence.EmbeddedId;
|
---|
6 | import javax.persistence.Entity;
|
---|
7 | import javax.persistence.Table;
|
---|
8 |
|
---|
9 | @Entity
|
---|
10 | @Data
|
---|
11 | @Table(name="controles")
|
---|
12 | public class Controles {
|
---|
13 |
|
---|
14 | @EmbeddedId
|
---|
15 | private ControlesKey controlesKey;
|
---|
16 |
|
---|
17 | public Controles(ControlesKey controlesKey) {
|
---|
18 | this.controlesKey = controlesKey;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public Controles() {
|
---|
22 |
|
---|
23 | }
|
---|
24 |
|
---|
25 | public ControlesKey getControlesKey() {
|
---|
26 | return controlesKey;
|
---|
27 | }
|
---|
28 |
|
---|
29 | public void setControlesKey(ControlesKey controlesKey) {
|
---|
30 | this.controlesKey = controlesKey;
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.