Last change
on this file since f214198 was 64ee7f4, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
Fixes
|
-
Property mode
set to
100644
|
File size:
530 bytes
|
Line | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 | import javax.persistence.*;
|
---|
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
|
---|
20 | @JoinColumn(name = "id_room")
|
---|
21 | Projection_Room projection;
|
---|
22 | @ManyToOne
|
---|
23 | @JoinColumn(name = "id_category")
|
---|
24 | Category category;
|
---|
25 |
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.