source: source/MovieZilla-master/src/main/java/com/example/demo/model/Genre.java

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 741 bytes
Line 
1package com.example.demo.model;
2
3import lombok.Data;
4
5import javax.persistence.*;
6
7@Entity
8@Data
9@Table(name = "genre")
10public class Genre {
11
12 @Id
13 @GeneratedValue(strategy = GenerationType.IDENTITY)
14 Integer genre_id;
15
16 String genre_name;
17
18 public Genre(Integer genre_id, String genre_name) {
19 this.genre_id = genre_id;
20 this.genre_name = genre_name;
21 }
22
23 public Genre() {
24
25 }
26
27 public Integer getGenre_id() {
28 return genre_id;
29 }
30
31 public void setGenre_id(Integer genre_id) {
32 this.genre_id = genre_id;
33 }
34
35 public String getGenre_name() {
36 return genre_name;
37 }
38
39 public void setGenre_name(String genre_name) {
40 this.genre_name = genre_name;
41 }
42
43}
Note: See TracBrowser for help on using the repository browser.