package webctdbexport.db;
// Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
import java.sql.Clob;
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.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
* GenericGroup generated by hbm2java
*/
@Entity
@Table(name="GENERIC_GROUP"
)
public class GenericGroup implements java.io.Serializable {
private BigDecimal id;
private CoTemplate coTemplate;
private String name;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private Clob description;
private Set<SelfEnrollmentLc> selfEnrollmentLcs = new HashSet<SelfEnrollmentLc>(0);
private Set<SrCriteriaDetail> srCriteriaDetails = new HashSet<SrCriteriaDetail>(0);
private Set<AgnGroupassignment> agnGroupassignments = new HashSet<AgnGroupassignment>(0);
public GenericGroup() {
}
public GenericGroup(BigDecimal id, CoTemplate coTemplate, String name, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.coTemplate = coTemplate;
this.name = name;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public GenericGroup(BigDecimal id, CoTemplate coTemplate, String name, BigDecimal createTs, BigDecimal lastmodifyTs, Clob description, Set<SelfEnrollmentLc> selfEnrollmentLcs, Set<SrCriteriaDetail> srCriteriaDetails, Set<AgnGroupassignment> agnGroupassignments) {
this.id = id;
this.coTemplate = coTemplate;
this.name = name;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.description = description;
this.selfEnrollmentLcs = selfEnrollmentLcs;
this.srCriteriaDetails = srCriteriaDetails;
this.agnGroupassignments = agnGroupassignments;
}
@Id
@Column(name="ID", nullable=false, precision=20, scale=0)
public BigDecimal getId() {
return this.id;
}
public void setId(BigDecimal id) {
this.id = id;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="TEMPLATE_ID", nullable=false)
public CoTemplate getCoTemplate() {
return this.coTemplate;
}
public void setCoTemplate(CoTemplate coTemplate) {
this.coTemplate = coTemplate;
}
@Column(name="NAME", nullable=false, length=1000)
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
@Column(name="CREATE_TS", nullable=false, precision=20, scale=0)
public BigDecimal getCreateTs() {
return this.createTs;
}
public void setCreateTs(BigDecimal createTs) {
this.createTs = createTs;
}
@Column(name="LASTMODIFY_TS", nullable=false, precision=20, scale=0)
public BigDecimal getLastmodifyTs() {
return this.lastmodifyTs;
}
public void setLastmodifyTs(BigDecimal lastmodifyTs) {
this.lastmodifyTs = lastmodifyTs;
}
@Column(name="DESCRIPTION")
public Clob getDescription() {
return this.description;
}
public void setDescription(Clob description) {
this.description = description;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="genericGroup")
public Set<SelfEnrollmentLc> getSelfEnrollmentLcs() {
return this.selfEnrollmentLcs;
}
public void setSelfEnrollmentLcs(Set<SelfEnrollmentLc> selfEnrollmentLcs) {
this.selfEnrollmentLcs = selfEnrollmentLcs;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="genericGroup")
public Set<SrCriteriaDetail> getSrCriteriaDetails() {
return this.srCriteriaDetails;
}
public void setSrCriteriaDetails(Set<SrCriteriaDetail> srCriteriaDetails) {
this.srCriteriaDetails = srCriteriaDetails;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="genericGroup")
public Set<AgnGroupassignment> getAgnGroupassignments() {
return this.agnGroupassignments;
}
public void setAgnGroupassignments(Set<AgnGroupassignment> agnGroupassignments) {
this.agnGroupassignments = agnGroupassignments;
}
}