package webctdbexport.db; // Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1 import java.math.BigDecimal; import java.sql.Blob; 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; /** * PstDefaulticon generated by hbm2java */ @Entity @Table(name="PST_DEFAULTICON" ) public class PstDefaulticon implements java.io.Serializable { private BigDecimal id; private PstIconset pstIconset; private String name; private String mimeType; private BigDecimal createTs; private BigDecimal lastmodifyTs; private Blob content; private Set<PstReplacementIcon> pstReplacementIcons = new HashSet<PstReplacementIcon>(0); public PstDefaulticon() { } public PstDefaulticon(BigDecimal id, PstIconset pstIconset, String name, String mimeType, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.pstIconset = pstIconset; this.name = name; this.mimeType = mimeType; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public PstDefaulticon(BigDecimal id, PstIconset pstIconset, String name, String mimeType, BigDecimal createTs, BigDecimal lastmodifyTs, Blob content, Set<PstReplacementIcon> pstReplacementIcons) { this.id = id; this.pstIconset = pstIconset; this.name = name; this.mimeType = mimeType; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.content = content; this.pstReplacementIcons = pstReplacementIcons; } @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="ICONSET_ID", nullable=false) public PstIconset getPstIconset() { return this.pstIconset; } public void setPstIconset(PstIconset pstIconset) { this.pstIconset = pstIconset; } @Column(name="NAME", nullable=false, length=60) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name="MIME_TYPE", nullable=false, length=100) public String getMimeType() { return this.mimeType; } public void setMimeType(String mimeType) { this.mimeType = mimeType; } @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="CONTENT") public Blob getContent() { return this.content; } public void setContent(Blob content) { this.content = content; } @OneToMany(fetch=FetchType.LAZY, mappedBy="pstDefaulticon") public Set<PstReplacementIcon> getPstReplacementIcons() { return this.pstReplacementIcons; } public void setPstReplacementIcons(Set<PstReplacementIcon> pstReplacementIcons) { this.pstReplacementIcons = pstReplacementIcons; } }