Last change
on this file was 0e4d807, checked in by Ivona <ivonatapshanovska@…>, 14 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
557 bytes
|
Line | |
---|
1 | package com.example.baziproekt.model.Komentari;
|
---|
2 |
|
---|
3 | import javax.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 |
|
---|
6 |
|
---|
7 | @Table
|
---|
8 | @Data
|
---|
9 | @Entity
|
---|
10 | public class Komentari {
|
---|
11 |
|
---|
12 | private String tekst;
|
---|
13 |
|
---|
14 | @EmbeddedId
|
---|
15 | private KomentariCompositeKey pk_komentari;
|
---|
16 |
|
---|
17 | public String getTekst() {
|
---|
18 | return tekst;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public void setTekst(String tekst) {
|
---|
22 | this.tekst = tekst;
|
---|
23 | }
|
---|
24 |
|
---|
25 | public Komentari() {
|
---|
26 | }
|
---|
27 |
|
---|
28 | public Komentari(String tekst, KomentariCompositeKey pk_komentari) {
|
---|
29 | this.tekst = tekst;
|
---|
30 | this.pk_komentari = pk_komentari;
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.