ingo@2818: package de.intevation.flys.model; ingo@2818: ingo@2818: import java.io.Serializable; ingo@2818: import java.math.BigDecimal; ingo@2818: ingo@2818: import javax.persistence.Entity; ingo@2818: import javax.persistence.Id; ingo@2818: import javax.persistence.Table; ingo@2818: import javax.persistence.GeneratedValue; ingo@2818: import javax.persistence.Column; ingo@2818: import javax.persistence.SequenceGenerator; ingo@2818: import javax.persistence.GenerationType; ingo@2818: import javax.persistence.JoinColumn; ingo@2818: import javax.persistence.OneToOne; ingo@2818: ingo@2818: ingo@2818: @Entity ingo@2818: @Table(name = "morphologic_width_values") ingo@2818: public class MorphologicalWidthValue implements Serializable { ingo@2818: ingo@2818: private Integer id; ingo@2818: ingo@2818: private MorphologicalWidth morphologicalWidth; ingo@2818: ingo@2818: private BigDecimal station; ingo@2818: private BigDecimal width; ingo@2818: ingo@2819: private String description; ingo@2819: ingo@2818: ingo@2818: public MorphologicalWidthValue() { ingo@2818: } ingo@2818: ingo@2818: ingo@2818: public MorphologicalWidthValue( ingo@2818: MorphologicalWidth morphologicalWidth, ingo@2818: BigDecimal station, ingo@2819: BigDecimal width, ingo@2819: String description ingo@2818: ) { ingo@2818: this.morphologicalWidth = morphologicalWidth; ingo@2818: this.station = station; ingo@2818: this.width = width; ingo@2819: this.description = description; ingo@2818: } ingo@2818: ingo@2818: ingo@2818: @Id ingo@2818: @SequenceGenerator( ingo@2818: name = "SEQUENCE_MORPH_WIDTH_VALUES_ID_SEQ", ingo@2818: sequenceName = "MORPH_WIDTH_VALUES_ID_SEQ", ingo@2818: allocationSize = 1) ingo@2818: @GeneratedValue( ingo@2818: strategy = GenerationType.SEQUENCE, ingo@2818: generator = "SEQUENCE_MORPH_WIDTH_VALUES_ID_SEQ") ingo@2818: @Column(name = "id") ingo@2818: public Integer getId() { ingo@2818: return id; ingo@2818: } ingo@2818: ingo@2818: public void setId(Integer id) { ingo@2818: this.id = id; ingo@2818: } ingo@2818: ingo@2818: ingo@2818: @OneToOne ingo@2818: @JoinColumn(name = "morphologic_width_id") ingo@2818: public MorphologicalWidth getMorphologicalWidth() { ingo@2818: return morphologicalWidth; ingo@2818: } ingo@2818: ingo@2818: public void setMorphologicalWidth(MorphologicalWidth width) { ingo@2818: this.morphologicalWidth = width; ingo@2818: } ingo@2818: ingo@2818: @Column(name = "station") ingo@2818: public BigDecimal getStation() { ingo@2818: return station; ingo@2818: } ingo@2818: ingo@2818: public void setStation(BigDecimal station) { ingo@2818: this.station = station; ingo@2818: } ingo@2818: ingo@2818: @Column(name = "width") ingo@2818: public BigDecimal getWidth() { ingo@2818: return width; ingo@2818: } ingo@2818: ingo@2818: public void setWidth(BigDecimal width) { ingo@2818: this.width = width; ingo@2818: } ingo@2819: ingo@2819: @Column(name = "description") ingo@2819: public String getDescription() { ingo@2819: return description; ingo@2819: } ingo@2819: ingo@2819: public void setDescription(String description) { ingo@2819: this.description = description; ingo@2819: } ingo@2818: } ingo@2818: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :