Rev | Line | |
---|
[e68190f] | 1 | package com.example.moviezone.model;
|
---|
| 2 |
|
---|
[2269653] | 3 | import javax.persistence.*;
|
---|
[e68190f] | 4 | import lombok.Getter;
|
---|
| 5 | import lombok.Setter;
|
---|
| 6 | import lombok.ToString;
|
---|
| 7 |
|
---|
| 8 | @Entity
|
---|
| 9 | @Getter
|
---|
| 10 | @Setter
|
---|
| 11 | @ToString
|
---|
| 12 | @Table(name = "seats")
|
---|
| 13 | public class Seat {
|
---|
| 14 | @Id
|
---|
| 15 | @Column(name = "id_seat", nullable = false)
|
---|
| 16 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 17 | Integer id_seat;
|
---|
| 18 | Integer seat_number;
|
---|
| 19 | @ManyToOne
|
---|
[eb226b2] | 20 | @JoinColumn(name = "id_room")
|
---|
[64ee7f4] | 21 | Projection_Room projection;
|
---|
[e68190f] | 22 | @ManyToOne
|
---|
[eb226b2] | 23 | @JoinColumn(name = "id_category")
|
---|
[e68190f] | 24 | Category category;
|
---|
| 25 |
|
---|
| 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.