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.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToOne; import javax.persistence.Table; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Parameter; /** * CoResource generated by hbm2java */ @Entity @Table(name="CO_RESOURCE" ) public class CoResource implements java.io.Serializable { private BigDecimal id; private CmsContentEntry cmsContentEntry; private String resourcetype; private String title; private BigDecimal createTs; private BigDecimal lastmodifyTs; private String author; private String year; private String edition; private String publisher; private String journal; private String volume; private String url; private boolean deschtmlenable; private String resnumber; public CoResource() { } public CoResource(CmsContentEntry cmsContentEntry, String resourcetype, String title, BigDecimal createTs, BigDecimal lastmodifyTs, boolean deschtmlenable) { this.cmsContentEntry = cmsContentEntry; this.resourcetype = resourcetype; this.title = title; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.deschtmlenable = deschtmlenable; } public CoResource(CmsContentEntry cmsContentEntry, String resourcetype, String title, BigDecimal createTs, BigDecimal lastmodifyTs, String author, String year, String edition, String publisher, String journal, String volume, String url, boolean deschtmlenable, String resnumber) { this.cmsContentEntry = cmsContentEntry; this.resourcetype = resourcetype; this.title = title; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.author = author; this.year = year; this.edition = edition; this.publisher = publisher; this.journal = journal; this.volume = volume; this.url = url; this.deschtmlenable = deschtmlenable; this.resnumber = resnumber; } @GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="cmsContentEntry"))@Id @GeneratedValue(generator="generator") @Column(name="ID", nullable=false, precision=20, scale=0) public BigDecimal getId() { return this.id; } public void setId(BigDecimal id) { this.id = id; } @OneToOne(fetch=FetchType.LAZY) public CmsContentEntry getCmsContentEntry() { return this.cmsContentEntry; } public void setCmsContentEntry(CmsContentEntry cmsContentEntry) { this.cmsContentEntry = cmsContentEntry; } @Column(name="RESOURCETYPE", nullable=false, length=40) public String getResourcetype() { return this.resourcetype; } public void setResourcetype(String resourcetype) { this.resourcetype = resourcetype; } @Column(name="TITLE", nullable=false, length=1000) public String getTitle() { return this.title; } public void setTitle(String title) { this.title = title; } @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="AUTHOR", length=1000) public String getAuthor() { return this.author; } public void setAuthor(String author) { this.author = author; } @Column(name="YEAR", length=40) public String getYear() { return this.year; } public void setYear(String year) { this.year = year; } @Column(name="EDITION", length=1000) public String getEdition() { return this.edition; } public void setEdition(String edition) { this.edition = edition; } @Column(name="PUBLISHER", length=1000) public String getPublisher() { return this.publisher; } public void setPublisher(String publisher) { this.publisher = publisher; } @Column(name="JOURNAL", length=1000) public String getJournal() { return this.journal; } public void setJournal(String journal) { this.journal = journal; } @Column(name="VOLUME", length=40) public String getVolume() { return this.volume; } public void setVolume(String volume) { this.volume = volume; } @Column(name="URL", length=1000) public String getUrl() { return this.url; } public void setUrl(String url) { this.url = url; } @Column(name="DESCHTMLENABLE", nullable=false, precision=1, scale=0) public boolean isDeschtmlenable() { return this.deschtmlenable; } public void setDeschtmlenable(boolean deschtmlenable) { this.deschtmlenable = deschtmlenable; } @Column(name="RESNUMBER", length=40) public String getResnumber() { return this.resnumber; } public void setResnumber(String resnumber) { this.resnumber = resnumber; } }