source: src/main/java/com/example/moviezone/model/Seat.java@ 2c7a732

Last change on this file since 2c7a732 was 64ee7f4, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Fixes

  • Property mode set to 100644
File size: 530 bytes
Line 
1package com.example.moviezone.model;
2
3import javax.persistence.*;
4import lombok.Getter;
5import lombok.Setter;
6import lombok.ToString;
7
8@Entity
9@Getter
10@Setter
11@ToString
12@Table(name = "seats")
13public 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.