Ignore:
Timestamp:
01/16/22 03:40:31 (3 years ago)
Author:
Petar Partaloski <ppartaloski@…>
Branches:
main
Children:
2a5d6a3
Parents:
839f96a
Message:

Early implementations, MovieController CRUD implementation included

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/wediscussmovies/project/model/Genre.java

    r839f96a r7a0bf79  
    11package com.wediscussmovies.project.model;
     2
     3import lombok.Data;
    24
    35import javax.persistence.Column;
     
    68import javax.persistence.Id;
    79
     10@Data
    811@Entity(name="genres")
    912public class Genre {
     
    1518    @Column(name="genre_type", length = 100, nullable = false, unique = true)
    1619    private String genre_type;
     20
     21    public Genre(String genreName) {
     22        this.genre_type = genreName;
     23    }
     24
     25    public Genre() {
     26    }
    1727}
    1828
Note: See TracChangeset for help on using the changeset viewer.