Last change
on this file since e2ca67b was e68190f, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
Update to Projection
|
-
Property mode
set to
100644
|
File size:
465 bytes
|
Line | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 | import jakarta.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 | Projection_Room projection_room;
|
---|
21 | @ManyToOne
|
---|
22 | Category category;
|
---|
23 |
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.