source:
Git/src/main/java/com/wediscussmovies/project/model/Genre.java@
7fafead
Last change on this file since 7fafead was 7fafead, checked in by , 2 years ago | |
---|---|
|
|
File size: 526 bytes |
Rev | Line | |
---|---|---|
[6e7b472] | 1 | package com.wediscussmovies.project.model; |
2 | ||
[7a0bf79] | 3 | |
[2d57cad] | 4 | import javax.persistence.*; |
5 | import java.util.Collection; | |
[7fafead] | 6 | import lombok.Data; |
7 | ||
[6e7b472] | 8 | |
[2d57cad] | 9 | @Entity |
10 | @Table(name = "genres", schema = "project", catalog = "db_202122z_va_prj_wediscussmovies") | |
[7fafead] | 11 | @Data |
[6e7b472] | 12 | public class Genre { |
[7fafead] | 13 | |
[2d57cad] | 14 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
[6e7b472] | 15 | @Id |
[2d57cad] | 16 | @Column(name = "genre_id") |
[7fafead] | 17 | private Long id; |
[2d57cad] | 18 | |
[7fafead] | 19 | @Column(name = "genre_type") |
20 | private String genre; | |
[2d57cad] | 21 | |
[7fafead] | 22 | public Genre(String genre) { |
23 | this.genre = genre; | |
[2d57cad] | 24 | } |
25 | ||
26 | public Genre() { | |
27 | } | |
[6e7b472] | 28 | |
[2d57cad] | 29 | } |
Note:
See TracBrowser
for help on using the repository browser.