package webctdbexport.db; // Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1 import java.math.BigDecimal; 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; /** * LocalContentEntry generated by hbm2java */ @Entity @Table(name="LOCAL_CONTENT_ENTRY" ) public class LocalContentEntry implements java.io.Serializable { private BigDecimal id; private CoTemplate coTemplate; private String title; private String location; private BigDecimal createTs; private BigDecimal lastmodifyTs; private Set<LocalContentDesktopConfig> localContentDesktopConfigs = new HashSet<LocalContentDesktopConfig>(0); public LocalContentEntry() { } public LocalContentEntry(BigDecimal id, CoTemplate coTemplate, String title, String location, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.coTemplate = coTemplate; this.title = title; this.location = location; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public LocalContentEntry(BigDecimal id, CoTemplate coTemplate, String title, String location, BigDecimal createTs, BigDecimal lastmodifyTs, Set<LocalContentDesktopConfig> localContentDesktopConfigs) { this.id = id; this.coTemplate = coTemplate; this.title = title; this.location = location; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.localContentDesktopConfigs = localContentDesktopConfigs; } @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="TEMPLATE_ID", nullable=false) public CoTemplate getCoTemplate() { return this.coTemplate; } public void setCoTemplate(CoTemplate coTemplate) { this.coTemplate = coTemplate; } @Column(name="TITLE", nullable=false, length=800) public String getTitle() { return this.title; } public void setTitle(String title) { this.title = title; } @Column(name="LOCATION", nullable=false, length=4000) public String getLocation() { return this.location; } public void setLocation(String location) { this.location = location; } @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; } @OneToMany(fetch=FetchType.LAZY, mappedBy="localContentEntry") public Set<LocalContentDesktopConfig> getLocalContentDesktopConfigs() { return this.localContentDesktopConfigs; } public void setLocalContentDesktopConfigs(Set<LocalContentDesktopConfig> localContentDesktopConfigs) { this.localContentDesktopConfigs = localContentDesktopConfigs; } }