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; /** * Photo generated by hbm2java */ @Entity @Table(name="PHOTO" ) public class Photo implements java.io.Serializable { private BigDecimal id; private SimpleFile simpleFile; private Person person; private boolean deletestatus; private BigDecimal createTs; private BigDecimal lastmodifyTs; private String photoExtref; private String photoImgtype; public Photo() { } public Photo(BigDecimal id, Person person, boolean deletestatus, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.person = person; this.deletestatus = deletestatus; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public Photo(BigDecimal id, SimpleFile simpleFile, Person person, boolean deletestatus, BigDecimal createTs, BigDecimal lastmodifyTs, String photoExtref, String photoImgtype) { this.id = id; this.simpleFile = simpleFile; this.person = person; this.deletestatus = deletestatus; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.photoExtref = photoExtref; this.photoImgtype = photoImgtype; } @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="PHOTO") public SimpleFile getSimpleFile() { return this.simpleFile; } public void setSimpleFile(SimpleFile simpleFile) { this.simpleFile = simpleFile; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="PERSON_ID", nullable=false) public Person getPerson() { return this.person; } public void setPerson(Person person) { this.person = person; } @Column(name="DELETESTATUS", nullable=false, precision=1, scale=0) public boolean isDeletestatus() { return this.deletestatus; } public void setDeletestatus(boolean deletestatus) { this.deletestatus = deletestatus; } @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="PHOTO_EXTREF", length=3072) public String getPhotoExtref() { return this.photoExtref; } public void setPhotoExtref(String photoExtref) { this.photoExtref = photoExtref; } @Column(name="PHOTO_IMGTYPE", length=96) public String getPhotoImgtype() { return this.photoImgtype; } public void setPhotoImgtype(String photoImgtype) { this.photoImgtype = photoImgtype; } }