Changeset 7a0bf79 in Git for src/main/java/com/wediscussmovies/project/model/Genre.java
- Timestamp:
- 01/16/22 03:40:31 (3 years ago)
- Branches:
- main
- Children:
- 2a5d6a3
- Parents:
- 839f96a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/model/Genre.java
r839f96a r7a0bf79 1 1 package com.wediscussmovies.project.model; 2 3 import lombok.Data; 2 4 3 5 import javax.persistence.Column; … … 6 8 import javax.persistence.Id; 7 9 10 @Data 8 11 @Entity(name="genres") 9 12 public class Genre { … … 15 18 @Column(name="genre_type", length = 100, nullable = false, unique = true) 16 19 private String genre_type; 20 21 public Genre(String genreName) { 22 this.genre_type = genreName; 23 } 24 25 public Genre() { 26 } 17 27 } 18 28
Note:
See TracChangeset
for help on using the changeset viewer.