com.github.gentity.demogallery.PictureKeyword Maven / Gradle / Ivy
package com.github.gentity.demogallery;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "PICTURE_KEYWORD")
public class PictureKeyword implements Serializable
{
@Column(name = "KEYWORD", length = 100, nullable = false)
protected String keyword;
@ManyToOne
@JoinColumn(name = "PICTURE_ID", nullable = false)
protected Picture picture;
public static PictureKeyword.Builder builder() {
return new PictureKeyword.Builder();
}
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public Picture getPicture() {
return picture;
}
public void setPicture(Picture picture) {
this.picture = picture;
}
public static class Builder {
private final PictureKeyword instance = new PictureKeyword();
public PictureKeyword build() {
return instance;
}
public PictureKeyword.Builder keyword(String keyword) {
instance.keyword = keyword;
return this;
}
public PictureKeyword.Builder picture(Picture picture) {
instance.picture = picture;
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy