package it.ramecera.screwdriver.waxds.copper; import java.io.Serializable; import java.sql.Timestamp; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQuery; import javax.persistence.Table; /** The persistent class for the novels database table. */ @Entity @Table(name = "novels", schema = "copper") @NamedQuery(name = "Novel.findAll", query = "SELECT n FROM Novel n") public class Novel implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer star; private Timestamp creationdate; private String language; private String title; private Timestamp updatedate; // bi-directional many-to-one association to Actor @ManyToOne @JoinColumn(name = "modifier") private Actor actor; // bi-directional many-to-one association to Author @ManyToOne @JoinColumn(name = "author") private Author authorBean; public Novel() { } public Integer getStar() { return this.star; } public void setStar(Integer star) { this.star = star; } public Timestamp getCreationdate() { return this.creationdate; } public void setCreationdate(Timestamp creationdate) { this.creationdate = creationdate; } public String getLanguage() { return this.language; } public void setLanguage(String language) { this.language = language; } public String getTitle() { return this.title; } public void setTitle(String title) { this.title = title; } public Timestamp getUpdatedate() { return this.updatedate; } public void setUpdatedate(Timestamp updatedate) { this.updatedate = updatedate; } public Actor getActor() { return this.actor; } public void setActor(Actor actor) { this.actor = actor; } public Author getAuthorBean() { return this.authorBean; } public void setAuthorBean(Author authorBean) { this.authorBean = authorBean; } }