package webctdbexport.db; // Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1 import java.math.BigDecimal; 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; /** * SettingsGroup generated by hbm2java */ @Entity @Table(name="SETTINGS_GROUP" ) public class SettingsGroup implements java.io.Serializable { private BigDecimal id; private String name; private byte type; private BigDecimal createTs; private BigDecimal lastmodifyTs; private Boolean hiddenFlag; private String jmxBean; private String label; private BigDecimal helpScreenId; private String category; private Set<Person> persons = new HashSet<Person>(0); private Set<SettingsLcTypeException> settingsLcTypeExceptions = new HashSet<SettingsLcTypeException>(0); private Set<SmsRoleBasedRestrictions> smsRoleBasedRestrictionses = new HashSet<SmsRoleBasedRestrictions>(0); private Set<SettingsDescription> settingsDescriptions = new HashSet<SettingsDescription>(0); public SettingsGroup() { } public SettingsGroup(BigDecimal id, String name, byte type, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.name = name; this.type = type; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public SettingsGroup(BigDecimal id, String name, byte type, BigDecimal createTs, BigDecimal lastmodifyTs, Boolean hiddenFlag, String jmxBean, String label, BigDecimal helpScreenId, String category, Set<Person> persons, Set<SettingsLcTypeException> settingsLcTypeExceptions, Set<SmsRoleBasedRestrictions> smsRoleBasedRestrictionses, Set<SettingsDescription> settingsDescriptions) { this.id = id; this.name = name; this.type = type; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.hiddenFlag = hiddenFlag; this.jmxBean = jmxBean; this.label = label; this.helpScreenId = helpScreenId; this.category = category; this.persons = persons; this.settingsLcTypeExceptions = settingsLcTypeExceptions; this.smsRoleBasedRestrictionses = smsRoleBasedRestrictionses; this.settingsDescriptions = settingsDescriptions; } @Id @Column(name="ID", nullable=false, precision=20, scale=0) public BigDecimal getId() { return this.id; } public void setId(BigDecimal id) { this.id = id; } @Column(name="NAME", unique=true, nullable=false, length=800) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name="TYPE", nullable=false, precision=2, scale=0) public byte getType() { return this.type; } public void setType(byte type) { this.type = type; } @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="HIDDEN_FLAG", precision=1, scale=0) public Boolean getHiddenFlag() { return this.hiddenFlag; } public void setHiddenFlag(Boolean hiddenFlag) { this.hiddenFlag = hiddenFlag; } @Column(name="JMX_BEAN", length=1000) public String getJmxBean() { return this.jmxBean; } public void setJmxBean(String jmxBean) { this.jmxBean = jmxBean; } @Column(name="LABEL", length=1000) public String getLabel() { return this.label; } public void setLabel(String label) { this.label = label; } @Column(name="HELP_SCREEN_ID", precision=20, scale=0) public BigDecimal getHelpScreenId() { return this.helpScreenId; } public void setHelpScreenId(BigDecimal helpScreenId) { this.helpScreenId = helpScreenId; } @Column(name="CATEGORY", length=800) public String getCategory() { return this.category; } public void setCategory(String category) { this.category = category; } @OneToMany(fetch=FetchType.LAZY, mappedBy="settingsGroup") public Set<Person> getPersons() { return this.persons; } public void setPersons(Set<Person> persons) { this.persons = persons; } @OneToMany(fetch=FetchType.LAZY, mappedBy="settingsGroup") public Set<SettingsLcTypeException> getSettingsLcTypeExceptions() { return this.settingsLcTypeExceptions; } public void setSettingsLcTypeExceptions(Set<SettingsLcTypeException> settingsLcTypeExceptions) { this.settingsLcTypeExceptions = settingsLcTypeExceptions; } @OneToMany(fetch=FetchType.LAZY, mappedBy="settingsGroup") public Set<SmsRoleBasedRestrictions> getSmsRoleBasedRestrictionses() { return this.smsRoleBasedRestrictionses; } public void setSmsRoleBasedRestrictionses(Set<SmsRoleBasedRestrictions> smsRoleBasedRestrictionses) { this.smsRoleBasedRestrictionses = smsRoleBasedRestrictionses; } @OneToMany(fetch=FetchType.LAZY, mappedBy="settingsGroup") public Set<SettingsDescription> getSettingsDescriptions() { return this.settingsDescriptions; } public void setSettingsDescriptions(Set<SettingsDescription> settingsDescriptions) { this.settingsDescriptions = settingsDescriptions; } }