ingo@2812: package de.intevation.flys.model; ingo@2812: ingo@2812: import java.io.Serializable; ingo@2812: import java.math.BigDecimal; ingo@2812: ingo@2812: import javax.persistence.Entity; ingo@2812: import javax.persistence.Id; ingo@2812: import javax.persistence.Table; ingo@2812: import javax.persistence.GeneratedValue; ingo@2812: import javax.persistence.Column; ingo@2812: import javax.persistence.SequenceGenerator; ingo@2812: import javax.persistence.GenerationType; ingo@2812: import javax.persistence.JoinColumn; ingo@2812: import javax.persistence.OneToOne; ingo@2812: ingo@2812: ingo@2812: @Entity ingo@2812: @Table(name = "sediment_density_values") ingo@2812: public class SedimentDensityValue implements Serializable { ingo@2812: ingo@2812: private Integer id; ingo@2812: ingo@2817: private SedimentDensity sedimentDensity; ingo@2812: ingo@2817: private BigDecimal station; tom@5507: private BigDecimal shoreOffset; ingo@2812: private BigDecimal density; rrenkert@4524: private BigDecimal year; ingo@2812: ingo@2812: private String description; ingo@2812: ingo@2812: ingo@2812: public SedimentDensityValue() { ingo@2812: } ingo@2812: ingo@2812: ingo@2817: public SedimentDensityValue( ingo@2817: SedimentDensity sedimentDensity, ingo@2817: BigDecimal station, tom@5507: BigDecimal shoreOffset, ingo@2817: BigDecimal density, rrenkert@4524: BigDecimal year, ingo@2817: String desc ingo@2817: ) { ingo@2817: this.sedimentDensity = sedimentDensity; ingo@2817: this.station = station; tom@5507: this.shoreOffset = shoreOffset; ingo@2817: this.density = density; rrenkert@4524: this.year = year; ingo@2817: this.description = desc; ingo@2812: } ingo@2812: ingo@2812: @Id ingo@2812: @SequenceGenerator( ingo@2812: name = "SEQUENCE_SEDIMENT_DENSITY_VALUES_ID_SEQ", ingo@2812: sequenceName = "SEDIMENT_DENSITY_VALUES_ID_SEQ", ingo@2812: allocationSize = 1) ingo@2812: @GeneratedValue( ingo@2812: strategy = GenerationType.SEQUENCE, ingo@2812: generator = "SEQUENCE_SEDIMENT_DENSITY_VALUES_ID_SEQ") ingo@2812: @Column(name = "id") ingo@2812: public Integer getId() { ingo@2812: return id; ingo@2812: } ingo@2812: ingo@2812: public void setId(Integer id) { ingo@2812: this.id = id; ingo@2812: } ingo@2812: ingo@2812: @OneToOne ingo@2817: @JoinColumn(name = "sediment_density_id") ingo@2817: public SedimentDensity getSedimentDensity() { ingo@2817: return sedimentDensity; ingo@2817: } ingo@2817: ingo@2817: public void setSedimentDensity(SedimentDensity sedimentDensity) { ingo@2817: this.sedimentDensity = sedimentDensity; ingo@2817: } ingo@2817: ingo@2817: @Column(name = "station") ingo@2817: public BigDecimal getStation() { ingo@2812: return station; ingo@2812: } ingo@2812: ingo@2817: public void setStation(BigDecimal station) { ingo@2812: this.station = station; ingo@2812: } ingo@2812: tom@5507: @Column(name = "shore_offset") tom@5507: public BigDecimal getShoreOffset() { tom@5507: return shoreOffset; tom@5507: } tom@5507: tom@5507: public void setShoreOffset(BigDecimal shoreOffset) { tom@5507: this.shoreOffset = shoreOffset; tom@5507: } tom@5507: ingo@2812: @Column(name = "density") ingo@2812: public BigDecimal getDensity() { ingo@2812: return density; ingo@2812: } ingo@2812: ingo@2812: public void setDensity(BigDecimal density) { ingo@2812: this.density = density; ingo@2812: } ingo@2812: ingo@2812: @Column(name = "description") ingo@2812: public String getDescription() { ingo@2812: return description; ingo@2812: } ingo@2812: ingo@2812: public void setDescription(String description) { ingo@2812: this.description = description; ingo@2812: } rrenkert@4524: rrenkert@4524: @Column(name = "year") rrenkert@4524: public BigDecimal getYear() { rrenkert@4524: return year; rrenkert@4524: } rrenkert@4524: rrenkert@4524: public void setYear(BigDecimal year) { rrenkert@4524: this.year = year; rrenkert@4524: } ingo@2812: } ingo@2812: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :