source: src/main/java/com/example/baziproekt/model/Komentari/Komentari.java@ 0e4d807

Last change on this file since 0e4d807 was 0e4d807, checked in by Ivona <ivonatapshanovska@…>, 10 months ago

Initial commit

  • Property mode set to 100644
File size: 557 bytes
Line 
1package com.example.baziproekt.model.Komentari;
2
3import javax.persistence.*;
4import lombok.Data;
5
6
7@Table
8@Data
9@Entity
10public 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.