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 | |
---|
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 | public 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.