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.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; /** * MyPortalPreference generated by hbm2java */ @Entity @Table(name="MY_PORTAL_PREFERENCE" ) public class MyPortalPreference implements java.io.Serializable { private BigDecimal id; private Person person; private BigDecimal createTs; private BigDecimal lastmodifyTs; private String colorBg; private String colorSideHeaderBg; private String colorSideBg; private String colorSideText; private String colorSideLink; private String colorCenterHeaderBg; private String colorCenterBorder; private Set<MyChannelPreference> myChannelPreferences = new HashSet<MyChannelPreference>(0); public MyPortalPreference() { } public MyPortalPreference(BigDecimal id, Person person, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.person = person; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public MyPortalPreference(BigDecimal id, Person person, BigDecimal createTs, BigDecimal lastmodifyTs, String colorBg, String colorSideHeaderBg, String colorSideBg, String colorSideText, String colorSideLink, String colorCenterHeaderBg, String colorCenterBorder, Set<MyChannelPreference> myChannelPreferences) { this.id = id; this.person = person; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.colorBg = colorBg; this.colorSideHeaderBg = colorSideHeaderBg; this.colorSideBg = colorSideBg; this.colorSideText = colorSideText; this.colorSideLink = colorSideLink; this.colorCenterHeaderBg = colorCenterHeaderBg; this.colorCenterBorder = colorCenterBorder; this.myChannelPreferences = myChannelPreferences; } @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="PERSON_ID", unique=true, nullable=false) public Person getPerson() { return this.person; } public void setPerson(Person person) { this.person = person; } @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="COLOR_BG", length=6) public String getColorBg() { return this.colorBg; } public void setColorBg(String colorBg) { this.colorBg = colorBg; } @Column(name="COLOR_SIDE_HEADER_BG", length=6) public String getColorSideHeaderBg() { return this.colorSideHeaderBg; } public void setColorSideHeaderBg(String colorSideHeaderBg) { this.colorSideHeaderBg = colorSideHeaderBg; } @Column(name="COLOR_SIDE_BG", length=6) public String getColorSideBg() { return this.colorSideBg; } public void setColorSideBg(String colorSideBg) { this.colorSideBg = colorSideBg; } @Column(name="COLOR_SIDE_TEXT", length=6) public String getColorSideText() { return this.colorSideText; } public void setColorSideText(String colorSideText) { this.colorSideText = colorSideText; } @Column(name="COLOR_SIDE_LINK", length=6) public String getColorSideLink() { return this.colorSideLink; } public void setColorSideLink(String colorSideLink) { this.colorSideLink = colorSideLink; } @Column(name="COLOR_CENTER_HEADER_BG", length=6) public String getColorCenterHeaderBg() { return this.colorCenterHeaderBg; } public void setColorCenterHeaderBg(String colorCenterHeaderBg) { this.colorCenterHeaderBg = colorCenterHeaderBg; } @Column(name="COLOR_CENTER_BORDER", length=6) public String getColorCenterBorder() { return this.colorCenterBorder; } public void setColorCenterBorder(String colorCenterBorder) { this.colorCenterBorder = colorCenterBorder; } @OneToMany(fetch=FetchType.LAZY, mappedBy="myPortalPreference") public Set<MyChannelPreference> getMyChannelPreferences() { return this.myChannelPreferences; } public void setMyChannelPreferences(Set<MyChannelPreference> myChannelPreferences) { this.myChannelPreferences = myChannelPreferences; } }