package webctdbexport.db;
// Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
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.Table;
/**
* MyChannelPreference generated by hbm2java
*/
@Entity
@Table(name="MY_CHANNEL_PREFERENCE"
)
public class MyChannelPreference implements java.io.Serializable {
private BigDecimal id;
private MyPortalPreference myPortalPreference;
private String channelLookupName;
private boolean revealedFl;
private int position;
private boolean displayColumn;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private BigDecimal revealedStatusModifyTs;
public MyChannelPreference() {
}
public MyChannelPreference(BigDecimal id, MyPortalPreference myPortalPreference, String channelLookupName, boolean revealedFl, int position, boolean displayColumn, BigDecimal createTs, BigDecimal lastmodifyTs, BigDecimal revealedStatusModifyTs) {
this.id = id;
this.myPortalPreference = myPortalPreference;
this.channelLookupName = channelLookupName;
this.revealedFl = revealedFl;
this.position = position;
this.displayColumn = displayColumn;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.revealedStatusModifyTs = revealedStatusModifyTs;
}
@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="PORTAL_ID", nullable=false)
public MyPortalPreference getMyPortalPreference() {
return this.myPortalPreference;
}
public void setMyPortalPreference(MyPortalPreference myPortalPreference) {
this.myPortalPreference = myPortalPreference;
}
@Column(name="CHANNEL_LOOKUP_NAME", nullable=false, length=256)
public String getChannelLookupName() {
return this.channelLookupName;
}
public void setChannelLookupName(String channelLookupName) {
this.channelLookupName = channelLookupName;
}
@Column(name="REVEALED_FL", nullable=false, precision=1, scale=0)
public boolean isRevealedFl() {
return this.revealedFl;
}
public void setRevealedFl(boolean revealedFl) {
this.revealedFl = revealedFl;
}
@Column(name="POSITION", nullable=false, precision=8, scale=0)
public int getPosition() {
return this.position;
}
public void setPosition(int position) {
this.position = position;
}
@Column(name="DISPLAY_COLUMN", nullable=false, precision=1, scale=0)
public boolean isDisplayColumn() {
return this.displayColumn;
}
public void setDisplayColumn(boolean displayColumn) {
this.displayColumn = displayColumn;
}
@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="REVEALED_STATUS_MODIFY_TS", nullable=false, precision=20, scale=0)
public BigDecimal getRevealedStatusModifyTs() {
return this.revealedStatusModifyTs;
}
public void setRevealedStatusModifyTs(BigDecimal revealedStatusModifyTs) {
this.revealedStatusModifyTs = revealedStatusModifyTs;
}
}