Line | |
---|
1 | package com.example.model.manytomany;
|
---|
2 |
|
---|
3 | import lombok.Data;
|
---|
4 |
|
---|
5 | import javax.persistence.Column;
|
---|
6 | import javax.persistence.Entity;
|
---|
7 | import javax.persistence.Id;
|
---|
8 | import javax.persistence.Table;
|
---|
9 | import java.io.Serializable;
|
---|
10 |
|
---|
11 | @Data
|
---|
12 | @Entity
|
---|
13 | @Table(name = "bend_sviri_nastan")
|
---|
14 | public class band_plays_on_event implements Serializable {
|
---|
15 |
|
---|
16 | @Id
|
---|
17 | @Column(name = "korisnik_id")
|
---|
18 | Integer user_id;
|
---|
19 |
|
---|
20 | @Id
|
---|
21 | @Column(name = "nastan_id")
|
---|
22 | Integer event_id;
|
---|
23 |
|
---|
24 | String status;
|
---|
25 |
|
---|
26 | public band_plays_on_event(Integer user_id, Integer event_id, String status) {
|
---|
27 | this.user_id = user_id;
|
---|
28 | this.event_id = event_id;
|
---|
29 | this.status = status;
|
---|
30 | }
|
---|
31 |
|
---|
32 | public band_plays_on_event() {
|
---|
33 | }
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.