source: src/main/java/com/example/moviezone/model/Cinemas.java@ d522b3f

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

Categories and Cinemas

  • Property mode set to 100644
File size: 526 bytes
Line 
1package com.example.moviezone.model;
2
3
4import jakarta.persistence.*;
5import lombok.Getter;
6import lombok.Setter;
7import lombok.ToString;
8
9@Getter
10@Setter
11@ToString
12@Entity
13public class Cinemas {
14 @Id
15 @Column(name = "id_cinema", nullable = false)
16 @GeneratedValue(strategy = GenerationType.IDENTITY)
17 private Long id_cinema;
18 String name;
19 String location;
20
21 public Cinemas(String name, String location) {
22 this.name = name;
23 this.location = location;
24 }
25
26 public Cinemas() {
27
28 }
29}
Note: See TracBrowser for help on using the repository browser.