Last change
on this file since bcb4acc was 2269653, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
First Run No error
|
-
Property mode
set to
100644
|
File size:
506 bytes
|
Line | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 |
|
---|
4 | import javax.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 | @JoinColumn(name = "id_cinema")
|
---|
23 | Cinema cinema;
|
---|
24 |
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.