package com.mossle.feedback.persistence.domain;
// Generated by Hibernate Tools
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
* FeedbackCatalog .
*
* @author Lingo
*/
@Entity
@Table(name = "FEEDBACK_CATALOG")
public class FeedbackCatalog implements java.io.Serializable {
private static final long serialVersionUID = 0L;
/** null. */
private Long id;
/** null. */
private String name;
/** null. */
private String description;
/** null. */
private Integer priority;
/** . */
private Set<FeedbackInfo> feedbackInfos = new HashSet<FeedbackInfo>(0);
public FeedbackCatalog() {
}
public FeedbackCatalog(Long id) {
this.id = id;
}
public FeedbackCatalog(Long id, String name, String description,
Integer priority, Set<FeedbackInfo> feedbackInfos) {
this.id = id;
this.name = name;
this.description = description;
this.priority = priority;
this.feedbackInfos = feedbackInfos;
}
/** @return null. */
@Id
@Column(name = "ID", unique = true, nullable = false)
public Long getId() {
return this.id;
}
/**
* @param id
* null.
*/
public void setId(Long id) {
this.id = id;
}
/** @return null. */
@Column(name = "NAME", length = 100)
public String getName() {
return this.name;
}
/**
* @param name
* null.
*/
public void setName(String name) {
this.name = name;
}
/** @return null. */
@Column(name = "DESCRIPTION", length = 200)
public String getDescription() {
return this.description;
}
/**
* @param description
* null.
*/
public void setDescription(String description) {
this.description = description;
}
/** @return null. */
@Column(name = "PRIORITY")
public Integer getPriority() {
return this.priority;
}
/**
* @param priority
* null.
*/
public void setPriority(Integer priority) {
this.priority = priority;
}
/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "feedbackCatalog")
public Set<FeedbackInfo> getFeedbackInfos() {
return this.feedbackInfos;
}
/**
* @param feedbackInfos
* .
*/
public void setFeedbackInfos(Set<FeedbackInfo> feedbackInfos) {
this.feedbackInfos = feedbackInfos;
}
}