Last change
on this file since 428c8a4 was 2c60cda, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
update to models
|
-
Property mode
set to
100644
|
File size:
472 bytes
|
Line | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 |
|
---|
4 | import jakarta.persistence.*;
|
---|
5 | import lombok.Getter;
|
---|
6 | import lombok.Setter;
|
---|
7 | import lombok.ToString;
|
---|
8 |
|
---|
9 | @Getter
|
---|
10 | @Setter
|
---|
11 | @ToString
|
---|
12 | @Entity
|
---|
13 | @Table(name = "projection_rooms")
|
---|
14 | public class Projection_Room {
|
---|
15 | @Id
|
---|
16 | @Column(name = "id_room", nullable = false)
|
---|
17 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
18 | Integer id_room;
|
---|
19 | Integer number_of_seats;
|
---|
20 | Integer projection_room_number;
|
---|
21 | @ManyToOne
|
---|
22 | Cinema cinema;
|
---|
23 |
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.