Last change
on this file was 2269653, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
First Run No error
|
-
Property mode
set to
100644
|
File size:
349 bytes
|
Rev | Line | |
---|
[e6b2246] | 1 | package com.example.moviezone.model;
|
---|
| 2 |
|
---|
| 3 | import lombok.Getter;
|
---|
| 4 | import lombok.Setter;
|
---|
| 5 | import lombok.ToString;
|
---|
| 6 |
|
---|
[2269653] | 7 | import javax.persistence.*;
|
---|
| 8 |
|
---|
| 9 |
|
---|
[e6b2246] | 10 | @Entity
|
---|
| 11 | @Getter
|
---|
| 12 | @Setter
|
---|
| 13 | @ToString
|
---|
| 14 | @Table(name = "cinemas")
|
---|
| 15 | public class Cinema {
|
---|
| 16 |
|
---|
| 17 | @Id
|
---|
| 18 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 19 | Integer id_cinema;
|
---|
| 20 |
|
---|
| 21 | String name;
|
---|
| 22 |
|
---|
| 23 | String location;
|
---|
| 24 |
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.