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.Table; raimund@1028: import javax.persistence.Transient; raimund@1028: raimund@1028: raimund@1028: /** raimund@1028: * The persistent class for the zusatz_wert database table. raimund@1028: * raimund@1028: */ raimund@1028: @Entity raimund@1028: @Table(name="zusatz_wert") raimund@1028: public class ZusatzWert 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: @Column(name="letzte_aenderung") raimund@1028: private Timestamp letzteAenderung; raimund@1028: raimund@1028: private float messfehler; raimund@1028: raimund@1028: @Column(name="messwert_pzs") raimund@1028: private double messwertPzs; raimund@1028: raimund@1028: @Column(name="nwg_zu_messwert") raimund@1028: private double nwgZuMesswert; raimund@1028: raimund@1028: @Column(name="probe_id") raimund@1028: private Integer probeId; raimund@1028: raimund@1028: @Column(name="pzs_id") raimund@1028: private String pzsId; raimund@1028: raimund@1028: @Column(name="tree_modified") raimund@1028: private Timestamp treeModified; raimund@1028: raimund@1033: @OneToOne raimund@1033: @JoinColumn(name="probe_id", insertable=false, updatable=false) raimund@1033: private Probe probe; raimund@1033: raimund@1028: @Transient raimund@1028: private boolean owner; raimund@1028: raimund@1028: @Transient raimund@1028: private boolean readonly; raimund@1028: raimund@1033: @Transient raimund@1033: private Timestamp parentModified; raimund@1033: raimund@1028: public ZusatzWert() { 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 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 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 double getMesswertPzs() { raimund@1028: return this.messwertPzs; raimund@1028: } raimund@1028: raimund@1028: public void setMesswertPzs(double messwertPzs) { raimund@1028: this.messwertPzs = messwertPzs; 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 Integer getProbeId() { raimund@1028: return this.probeId; raimund@1028: } raimund@1028: raimund@1028: public void setProbeId(Integer probeId) { raimund@1028: this.probeId = probeId; raimund@1028: } raimund@1028: raimund@1028: public String getPzsId() { raimund@1028: return this.pzsId; raimund@1028: } raimund@1028: raimund@1028: public void setPzsId(String pzsId) { raimund@1028: this.pzsId = pzsId; 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@1033: public Timestamp getParentModified() { raimund@1033: if (this.parentModified == null && this.probe != null) { raimund@1033: return this.probe.getTreeModified(); raimund@1033: } raimund@1033: return this.parentModified; raimund@1033: } raimund@1033: raimund@1033: public void setParentModified(Timestamp parentModified) { raimund@1033: this.parentModified = parentModified; raimund@1033: } raimund@1028: }