Last change
on this file since 2269653 was 2269653, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
First Run No error
|
-
Property mode
set to
100644
|
File size:
522 bytes
|
Line | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 | import lombok.Getter;
|
---|
4 | import lombok.Setter;
|
---|
5 | import lombok.ToString;
|
---|
6 |
|
---|
7 | import javax.persistence.*;
|
---|
8 |
|
---|
9 |
|
---|
10 | import java.time.LocalDate;
|
---|
11 |
|
---|
12 | @Entity
|
---|
13 | @Getter
|
---|
14 | @Setter
|
---|
15 | @ToString
|
---|
16 | @Table(name = "films")
|
---|
17 | public class Film {
|
---|
18 |
|
---|
19 | @Id
|
---|
20 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
21 | Integer id_film;
|
---|
22 |
|
---|
23 | String name;
|
---|
24 | Integer duration;
|
---|
25 | String actors;
|
---|
26 | String genre;
|
---|
27 | String age_category;
|
---|
28 | String url;
|
---|
29 | String director;
|
---|
30 | LocalDate start_date;
|
---|
31 | LocalDate end_date;
|
---|
32 |
|
---|
33 |
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.