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;
/**
* ProxyToolInstance generated by hbm2java
*/
@Entity
@Table(name="PROXY_TOOL_INSTANCE"
)
public class ProxyToolInstance implements java.io.Serializable {
private BigDecimal id;
private ProxyToolDef proxyToolDef;
private String name;
private boolean newWindowFlag;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private Set<ProxyToolInstanceSetting> proxyToolInstanceSettings = new HashSet<ProxyToolInstanceSetting>(0);
public ProxyToolInstance() {
}
public ProxyToolInstance(BigDecimal id, ProxyToolDef proxyToolDef, String name, boolean newWindowFlag, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.proxyToolDef = proxyToolDef;
this.name = name;
this.newWindowFlag = newWindowFlag;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public ProxyToolInstance(BigDecimal id, ProxyToolDef proxyToolDef, String name, boolean newWindowFlag, BigDecimal createTs, BigDecimal lastmodifyTs, Set<ProxyToolInstanceSetting> proxyToolInstanceSettings) {
this.id = id;
this.proxyToolDef = proxyToolDef;
this.name = name;
this.newWindowFlag = newWindowFlag;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.proxyToolInstanceSettings = proxyToolInstanceSettings;
}
@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="TOOL_DEF_ID", nullable=false)
public ProxyToolDef getProxyToolDef() {
return this.proxyToolDef;
}
public void setProxyToolDef(ProxyToolDef proxyToolDef) {
this.proxyToolDef = proxyToolDef;
}
@Column(name="NAME", nullable=false, length=1000)
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
@Column(name="NEW_WINDOW_FLAG", nullable=false, precision=1, scale=0)
public boolean isNewWindowFlag() {
return this.newWindowFlag;
}
public void setNewWindowFlag(boolean newWindowFlag) {
this.newWindowFlag = newWindowFlag;
}
@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="proxyToolInstance")
public Set<ProxyToolInstanceSetting> getProxyToolInstanceSettings() {
return this.proxyToolInstanceSettings;
}
public void setProxyToolInstanceSettings(Set<ProxyToolInstanceSetting> proxyToolInstanceSettings) {
this.proxyToolInstanceSettings = proxyToolInstanceSettings;
}
}