package seed.map; import java.util.Date; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.SequenceGenerator; import javax.persistence.Table; import org.hibernate.annotations.Proxy; @Entity @SequenceGenerator(name="sequence", sequenceName="SEQ_GROUP", allocationSize=1) @Table(name = "T_GROUP") @Proxy(lazy=true) public class T_GROUP { @Id @Column(name = "GROUP_IDX", nullable=false, insertable=true, updatable=false) @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="sequence") private Integer groupIdx; @OneToMany(mappedBy="tGroup", cascade={CascadeType.ALL}) private Set tGroupss; @OneToMany(mappedBy="tGroup", cascade={CascadeType.ALL}) private Set tSiteMenuAuths; @OneToMany(mappedBy="tGroup", cascade={CascadeType.ALL}) private Set tBbsAuths; @OneToMany(mappedBy="tGroup", cascade={CascadeType.ALL}) private Set tFormbuilderAuths; @OneToMany(mappedBy="tGroup", cascade={CascadeType.ALL}) private Set tSurveyAuths; @ManyToOne @JoinColumn(name="SITE_IDX", nullable=false, insertable=true, updatable= true) private T_SITE tSite; @ManyToOne @JoinColumn(name="MEMBER_IDX", nullable=false, insertable=true, updatable= true) private T_MEMBER tMember; @Column(name = "GROUP_NAME", length=100, nullable=false, insertable=true, updatable=true) private String groupName; @Column(name = "GROUP_LEVEL", nullable=false, insertable=true, updatable=true) private Integer groupLevel; @Column(name = "GROUP_TYPE", length=1, nullable=false, insertable=true, updatable=true) private String groupType; @Column(name = "GROUP_STATUS", length=1, nullable=false, insertable=true, updatable=true) private String groupStatus; @Column(name = "GROUP_REGDATE", columnDefinition="TIMESTAMP", nullable=false, insertable=true, updatable=true) private Date groupRegDate; @Column(name = "GROUP_MODDATE", columnDefinition="TIMESTAMP", nullable=false, insertable=true, updatable=true) private Date groupModDate; public Integer getGroupIdx() { return groupIdx; } public void setGroupIdx(Integer groupIdx) { this.groupIdx = groupIdx; } public Set gettGroupss() { return tGroupss; } public void settGroupss(Set tGroupss) { this.tGroupss = tGroupss; } public Set gettSiteMenuAuths() { return tSiteMenuAuths; } public void settSiteMenuAuths(Set tSiteMenuAuths) { this.tSiteMenuAuths = tSiteMenuAuths; } public Set gettBbsAuths() { return tBbsAuths; } public void settBbsAuths(Set tBbsAuths) { this.tBbsAuths = tBbsAuths; } public Set gettFormbuilderAuths() { return tFormbuilderAuths; } public void settFormbuilderAuths(Set tFormbuilderAuths) { this.tFormbuilderAuths = tFormbuilderAuths; } public Set gettSurveyAuths() { return tSurveyAuths; } public void settSurveyAuths(Set tSurveyAuths) { this.tSurveyAuths = tSurveyAuths; } public T_SITE gettSite() { return tSite; } public void settSite(T_SITE tSite) { this.tSite = tSite; } public T_MEMBER gettMember() { return tMember; } public void settMember(T_MEMBER tMember) { this.tMember = tMember; } public String getGroupName() { return groupName; } public void setGroupName(String groupName) { this.groupName = groupName; } public Integer getGroupLevel() { return groupLevel; } public void setGroupLevel(Integer groupLevel) { this.groupLevel = groupLevel; } public String getGroupType() { return groupType; } public void setGroupType(String groupType) { this.groupType = groupType; } public String getGroupStatus() { return groupStatus; } public void setGroupStatus(String groupStatus) { this.groupStatus = groupStatus; } public Date getGroupRegDate() { return groupRegDate; } public void setGroupRegDate(Date groupRegDate) { this.groupRegDate = groupRegDate; } public Date getGroupModDate() { return groupModDate; } public void setGroupModDate(Date groupModDate) { this.groupModDate = groupModDate; } }