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;
/**
* SettingsDescRanges generated by hbm2java
*/
@Entity
@Table(name="SETTINGS_DESC_RANGES"
)
public class SettingsDescRanges implements java.io.Serializable {
private BigDecimal id;
private SettingsDescription settingsDescription;
private String dataRange;
public SettingsDescRanges() {
}
public SettingsDescRanges(SettingsDescription settingsDescription) {
this.settingsDescription = settingsDescription;
}
public SettingsDescRanges(SettingsDescription settingsDescription, String dataRange) {
this.settingsDescription = settingsDescription;
this.dataRange = dataRange;
}
@GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="settingsDescription"))@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 SettingsDescription getSettingsDescription() {
return this.settingsDescription;
}
public void setSettingsDescription(SettingsDescription settingsDescription) {
this.settingsDescription = settingsDescription;
}
@Column(name="DATA_RANGE", length=4000)
public String getDataRange() {
return this.dataRange;
}
public void setDataRange(String dataRange) {
this.dataRange = dataRange;
}
}