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