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.OneToMany; import javax.persistence.Table; import javax.persistence.Version; /** * PublisherLicense generated by hbm2java */ @Entity @Table(name="PUBLISHER_LICENSE" ) public class PublisherLicense implements java.io.Serializable { private BigDecimal id; private String version; private String secret; private long pinlength; private BigDecimal createTs; private BigDecimal lastmodifyTs; private String organization; private String requesturl; private String senddesturl; private String ackdesturl; private String serialno; private String isbn; private BigDecimal instid; private BigDecimal orgid; private BigDecimal pinclid; private BigDecimal price; private String currency; private String duration; private Long durationLength; private Blob license; private Set<CmsContentEntry> cmsContentEntries = new HashSet<CmsContentEntry>(0); private Set<PinAuth> pinAuths = new HashSet<PinAuth>(0); public PublisherLicense() { } public PublisherLicense(BigDecimal id, String secret, long pinlength, BigDecimal createTs, BigDecimal lastmodifyTs, String isbn) { this.id = id; this.secret = secret; this.pinlength = pinlength; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.isbn = isbn; } public PublisherLicense(BigDecimal id, String secret, long pinlength, BigDecimal createTs, BigDecimal lastmodifyTs, String organization, String requesturl, String senddesturl, String ackdesturl, String serialno, String isbn, BigDecimal instid, BigDecimal orgid, BigDecimal pinclid, BigDecimal price, String currency, String duration, Long durationLength, Blob license, Set<CmsContentEntry> cmsContentEntries, Set<PinAuth> pinAuths) { this.id = id; this.secret = secret; this.pinlength = pinlength; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.organization = organization; this.requesturl = requesturl; this.senddesturl = senddesturl; this.ackdesturl = ackdesturl; this.serialno = serialno; this.isbn = isbn; this.instid = instid; this.orgid = orgid; this.pinclid = pinclid; this.price = price; this.currency = currency; this.duration = duration; this.durationLength = durationLength; this.license = license; this.cmsContentEntries = cmsContentEntries; this.pinAuths = pinAuths; } @Id @Column(name="ID", nullable=false, precision=20, scale=0) public BigDecimal getId() { return this.id; } public void setId(BigDecimal id) { this.id = id; } // @Version @Column(name="VERSION", nullable=false, length=2) public String getVersion() { return this.version; } public void setVersion(String version) { this.version = version; } @Column(name="SECRET", nullable=false, length=1000) public String getSecret() { return this.secret; } public void setSecret(String secret) { this.secret = secret; } @Column(name="PINLENGTH", nullable=false, precision=10, scale=0) public long getPinlength() { return this.pinlength; } public void setPinlength(long pinlength) { this.pinlength = pinlength; } @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="ORGANIZATION", length=1000) public String getOrganization() { return this.organization; } public void setOrganization(String organization) { this.organization = organization; } @Column(name="REQUESTURL", length=1000) public String getRequesturl() { return this.requesturl; } public void setRequesturl(String requesturl) { this.requesturl = requesturl; } @Column(name="SENDDESTURL", length=1000) public String getSenddesturl() { return this.senddesturl; } public void setSenddesturl(String senddesturl) { this.senddesturl = senddesturl; } @Column(name="ACKDESTURL", length=1000) public String getAckdesturl() { return this.ackdesturl; } public void setAckdesturl(String ackdesturl) { this.ackdesturl = ackdesturl; } @Column(name="SERIALNO", length=40) public String getSerialno() { return this.serialno; } public void setSerialno(String serialno) { this.serialno = serialno; } @Column(name="ISBN", unique=true, nullable=false, length=40) public String getIsbn() { return this.isbn; } public void setIsbn(String isbn) { this.isbn = isbn; } @Column(name="INSTID", precision=20, scale=0) public BigDecimal getInstid() { return this.instid; } public void setInstid(BigDecimal instid) { this.instid = instid; } @Column(name="ORGID", precision=20, scale=0) public BigDecimal getOrgid() { return this.orgid; } public void setOrgid(BigDecimal orgid) { this.orgid = orgid; } @Column(name="PINCLID", precision=20, scale=0) public BigDecimal getPinclid() { return this.pinclid; } public void setPinclid(BigDecimal pinclid) { this.pinclid = pinclid; } @Column(name="PRICE", precision=20, scale=0) public BigDecimal getPrice() { return this.price; } public void setPrice(BigDecimal price) { this.price = price; } @Column(name="CURRENCY", length=2) public String getCurrency() { return this.currency; } public void setCurrency(String currency) { this.currency = currency; } @Column(name="DURATION", length=10) public String getDuration() { return this.duration; } public void setDuration(String duration) { this.duration = duration; } @Column(name="DURATION_LENGTH", precision=10, scale=0) public Long getDurationLength() { return this.durationLength; } public void setDurationLength(Long durationLength) { this.durationLength = durationLength; } @Column(name="LICENSE") public Blob getLicense() { return this.license; } public void setLicense(Blob license) { this.license = license; } @OneToMany(fetch=FetchType.LAZY, mappedBy="publisherLicense") public Set<CmsContentEntry> getCmsContentEntries() { return this.cmsContentEntries; } public void setCmsContentEntries(Set<CmsContentEntry> cmsContentEntries) { this.cmsContentEntries = cmsContentEntries; } @OneToMany(fetch=FetchType.LAZY, mappedBy="publisherLicense") public Set<PinAuth> getPinAuths() { return this.pinAuths; } public void setPinAuths(Set<PinAuth> pinAuths) { this.pinAuths = pinAuths; } }