raimund@1028: package de.intevation.lada.model.land; raimund@1028: raimund@1028: import java.io.Serializable; raimund@1028: import java.sql.Timestamp; raimund@1028: raimund@1028: import javax.persistence.Column; raimund@1028: import javax.persistence.Entity; raimund@1028: import javax.persistence.GeneratedValue; raimund@1028: import javax.persistence.GenerationType; raimund@1028: import javax.persistence.Id; raimund@1033: import javax.persistence.JoinColumn; raimund@1033: import javax.persistence.OneToOne; raimund@1028: import javax.persistence.Transient; raimund@1028: raimund@1028: raimund@1028: /** raimund@1028: * The persistent class for the messwert database table. raimund@1028: * raimund@1028: */ raimund@1028: @Entity raimund@1028: public class Messwert implements Serializable { raimund@1028: private static final long serialVersionUID = 1L; raimund@1028: raimund@1028: @Id raimund@1028: @GeneratedValue(strategy=GenerationType.IDENTITY) raimund@1028: private Integer id; raimund@1028: raimund@1028: private Boolean grenzwertueberschreitung; raimund@1028: raimund@1028: @Column(name="letzte_aenderung") raimund@1028: private Timestamp letzteAenderung; raimund@1028: raimund@1028: @Column(name="meh_id") raimund@1028: private Integer mehId; raimund@1028: raimund@1028: private Float messfehler; raimund@1028: raimund@1028: @Column(name="messgroesse_id") raimund@1028: private Integer messgroesseId; raimund@1028: raimund@1028: @Column(name="messungs_id") raimund@1028: private Integer messungsId; raimund@1028: raimund@1028: private Double messwert; raimund@1028: raimund@1028: @Column(name="messwert_nwg") raimund@1028: private String messwertNwg; raimund@1028: raimund@1028: @Column(name="nwg_zu_messwert") raimund@1028: private Double nwgZuMesswert; raimund@1028: raimund@1028: @Column(name="tree_modified") raimund@1028: private Timestamp treeModified; raimund@1028: raimund@1033: @OneToOne raimund@1033: @JoinColumn(name="messungs_id", insertable=false, updatable=false) raimund@1033: private Messung messung; raimund@1033: raimund@1028: @Transient raimund@1028: private boolean owner; raimund@1028: raimund@1028: @Transient raimund@1028: private boolean readonly; raimund@1028: raimund@1028: @Transient raimund@1028: private Timestamp parentModified; raimund@1028: raimund@1028: public Messwert() { raimund@1028: } raimund@1028: raimund@1028: public Integer getId() { raimund@1028: return this.id; raimund@1028: } raimund@1028: raimund@1028: public void setId(Integer id) { raimund@1028: this.id = id; raimund@1028: } raimund@1028: raimund@1028: public Boolean getGrenzwertueberschreitung() { raimund@1028: return this.grenzwertueberschreitung; raimund@1028: } raimund@1028: raimund@1028: public void setGrenzwertueberschreitung(Boolean grenzwertueberschreitung) { raimund@1028: this.grenzwertueberschreitung = grenzwertueberschreitung; raimund@1028: } raimund@1028: raimund@1028: public Timestamp getLetzteAenderung() { raimund@1028: return this.letzteAenderung; raimund@1028: } raimund@1028: raimund@1028: public void setLetzteAenderung(Timestamp letzteAenderung) { raimund@1028: this.letzteAenderung = letzteAenderung; raimund@1028: } raimund@1028: raimund@1028: public Integer getMehId() { raimund@1028: return this.mehId; raimund@1028: } raimund@1028: raimund@1028: public void setMehId(Integer mehId) { raimund@1028: this.mehId = mehId; raimund@1028: } raimund@1028: raimund@1028: public Float getMessfehler() { raimund@1028: return this.messfehler; raimund@1028: } raimund@1028: raimund@1028: public void setMessfehler(Float messfehler) { raimund@1028: this.messfehler = messfehler; raimund@1028: } raimund@1028: raimund@1028: public Integer getMessgroesseId() { raimund@1028: return this.messgroesseId; raimund@1028: } raimund@1028: raimund@1028: public void setMessgroesseId(Integer messgroesseId) { raimund@1028: this.messgroesseId = messgroesseId; raimund@1028: } raimund@1028: raimund@1028: public Integer getMessungsId() { raimund@1028: return this.messungsId; raimund@1028: } raimund@1028: raimund@1028: public void setMessungsId(Integer messungsId) { raimund@1028: this.messungsId = messungsId; raimund@1028: } raimund@1028: raimund@1028: public Double getMesswert() { raimund@1028: return this.messwert; raimund@1028: } raimund@1028: raimund@1028: public void setMesswert(Double messwert) { raimund@1028: this.messwert = messwert; raimund@1028: } raimund@1028: raimund@1028: public String getMesswertNwg() { raimund@1028: return this.messwertNwg; raimund@1028: } raimund@1028: raimund@1028: public void setMesswertNwg(String messwertNwg) { raimund@1028: this.messwertNwg = messwertNwg; raimund@1028: } raimund@1028: raimund@1028: public Double getNwgZuMesswert() { raimund@1028: return this.nwgZuMesswert; raimund@1028: } raimund@1028: raimund@1028: public void setNwgZuMesswert(Double nwgZuMesswert) { raimund@1028: this.nwgZuMesswert = nwgZuMesswert; raimund@1028: } raimund@1028: raimund@1028: public Timestamp getTreeModified() { raimund@1028: return this.treeModified; raimund@1028: } raimund@1028: raimund@1028: public void setTreeModified(Timestamp treeModified) { raimund@1028: this.treeModified = treeModified; raimund@1028: } raimund@1028: raimund@1028: /** raimund@1028: * @return the owner raimund@1028: */ raimund@1028: public boolean isOwner() { raimund@1028: return owner; raimund@1028: } raimund@1028: raimund@1028: /** raimund@1028: * @param owner the owner to set raimund@1028: */ raimund@1028: public void setOwner(boolean owner) { raimund@1028: this.owner = owner; raimund@1028: } raimund@1028: raimund@1028: /** raimund@1028: * @return the readonly raimund@1028: */ raimund@1028: public boolean isReadonly() { raimund@1028: return readonly; raimund@1028: } raimund@1028: raimund@1028: /** raimund@1028: * @param readonly the readonly to set raimund@1028: */ raimund@1028: public void setReadonly(boolean readonly) { raimund@1028: this.readonly = readonly; raimund@1028: } raimund@1028: raimund@1028: public Timestamp getParentModified() { raimund@1033: if (this.parentModified == null && this.messung != null) { raimund@1033: return this.messung.getTreeModified(); raimund@1033: } raimund@1033: return this.parentModified; raimund@1028: } raimund@1028: raimund@1028: public void setParentModified(Timestamp parentModified) { raimund@1028: this.parentModified = parentModified; raimund@1028: } raimund@1028: }