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; 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, ingo@2817: BigDecimal density, rrenkert@4524: BigDecimal year, ingo@2817: String desc ingo@2817: ) { ingo@2817: this.sedimentDensity = sedimentDensity; ingo@2817: this.station = station; 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: 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 :