tom@1097: package de.intevation.lada.model.land; tom@1097: tom@1097: import java.io.Serializable; tom@1097: import java.sql.Timestamp; tom@1097: tom@1097: import javax.persistence.Column; tom@1097: import javax.persistence.Entity; tom@1097: import javax.persistence.GeneratedValue; tom@1097: import javax.persistence.GenerationType; tom@1097: import javax.persistence.Id; tom@1097: import javax.persistence.JoinColumn; tom@1097: import javax.persistence.OneToOne; tom@1097: import javax.persistence.Table; tom@1097: import javax.persistence.Transient; tom@1097: tom@1097: tom@1097: /** tom@1097: * The persistent class for the zusatz_wert database table. tom@1097: * tom@1097: */ tom@1097: @Entity tom@1097: @Table(name="zusatz_wert") tom@1097: public class ZusatzWert implements Serializable { tom@1097: private static final long serialVersionUID = 1L; tom@1097: tom@1097: @Id tom@1097: @GeneratedValue(strategy=GenerationType.IDENTITY) tom@1097: private Integer id; tom@1097: raimund@1302: @Column(name="letzte_aenderung", insertable=false) tom@1097: private Timestamp letzteAenderung; tom@1097: raimund@1118: private Float messfehler; tom@1097: tom@1097: @Column(name="messwert_pzs") raimund@1118: private Double messwertPzs; tom@1097: tom@1097: @Column(name="nwg_zu_messwert") raimund@1118: private Double nwgZuMesswert; tom@1097: tom@1097: @Column(name="probe_id") tom@1097: private Integer probeId; tom@1097: tom@1097: @Column(name="pzs_id") tom@1097: private String pzsId; tom@1097: raimund@1135: @Column(name="tree_modified", insertable=false, updatable=false) tom@1097: private Timestamp treeModified; tom@1097: tom@1097: @OneToOne tom@1097: @JoinColumn(name="probe_id", insertable=false, updatable=false) tom@1097: private Probe probe; tom@1097: tom@1097: @Transient tom@1097: private boolean owner; tom@1097: tom@1097: @Transient tom@1097: private boolean readonly; tom@1097: tom@1097: @Transient tom@1097: private Timestamp parentModified; tom@1097: tom@1097: public ZusatzWert() { tom@1097: } tom@1097: tom@1097: public Integer getId() { tom@1097: return this.id; tom@1097: } tom@1097: tom@1097: public void setId(Integer id) { tom@1097: this.id = id; tom@1097: } tom@1097: tom@1097: public Timestamp getLetzteAenderung() { tom@1097: return this.letzteAenderung; tom@1097: } tom@1097: tom@1097: public void setLetzteAenderung(Timestamp letzteAenderung) { tom@1097: this.letzteAenderung = letzteAenderung; tom@1097: } tom@1097: raimund@1118: public Float getMessfehler() { tom@1097: return this.messfehler; tom@1097: } tom@1097: raimund@1118: public void setMessfehler(Float messfehler) { tom@1097: this.messfehler = messfehler; tom@1097: } tom@1097: raimund@1118: public Double getMesswertPzs() { tom@1097: return this.messwertPzs; tom@1097: } tom@1097: raimund@1118: public void setMesswertPzs(Double messwertPzs) { tom@1097: this.messwertPzs = messwertPzs; tom@1097: } tom@1097: raimund@1118: public Double getNwgZuMesswert() { tom@1097: return this.nwgZuMesswert; tom@1097: } tom@1097: raimund@1118: public void setNwgZuMesswert(Double nwgZuMesswert) { tom@1097: this.nwgZuMesswert = nwgZuMesswert; tom@1097: } tom@1097: tom@1097: public Integer getProbeId() { tom@1097: return this.probeId; tom@1097: } tom@1097: tom@1097: public void setProbeId(Integer probeId) { tom@1097: this.probeId = probeId; tom@1097: } tom@1097: tom@1097: public String getPzsId() { tom@1097: return this.pzsId; tom@1097: } tom@1097: tom@1097: public void setPzsId(String pzsId) { tom@1097: this.pzsId = pzsId; tom@1097: } tom@1097: tom@1097: public Timestamp getTreeModified() { tom@1097: return this.treeModified; tom@1097: } tom@1097: tom@1097: public void setTreeModified(Timestamp treeModified) { tom@1097: this.treeModified = treeModified; tom@1097: } tom@1097: tom@1097: /** tom@1097: * @return the owner tom@1097: */ tom@1097: public boolean isOwner() { tom@1097: return owner; tom@1097: } tom@1097: tom@1097: /** tom@1097: * @param owner the owner to set tom@1097: */ tom@1097: public void setOwner(boolean owner) { tom@1097: this.owner = owner; tom@1097: } tom@1097: tom@1097: /** tom@1097: * @return the readonly tom@1097: */ tom@1097: public boolean isReadonly() { tom@1097: return readonly; tom@1097: } tom@1097: tom@1097: /** tom@1097: * @param readonly the readonly to set tom@1097: */ tom@1097: public void setReadonly(boolean readonly) { tom@1097: this.readonly = readonly; tom@1097: } tom@1097: tom@1097: public Timestamp getParentModified() { tom@1097: if (this.parentModified == null && this.probe != null) { tom@1097: return this.probe.getTreeModified(); tom@1097: } tom@1097: return this.parentModified; tom@1097: } tom@1097: tom@1097: public void setParentModified(Timestamp parentModified) { tom@1097: this.parentModified = parentModified; tom@1097: } tom@1097: }