comparison src/main/java/de/intevation/lada/model/land/LStatusProtokoll.java @ 754:9d34aca4fb07

Added "parentModified" attribute to status protocol.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 02 Nov 2015 09:58:50 +0100
parents e2a78d5afaaa
children
comparison
equal deleted inserted replaced
753:5f6037a281fe 754:9d34aca4fb07
5 * and comes with ABSOLUTELY NO WARRANTY! Check out 5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details. 6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */ 7 */
8 package de.intevation.lada.model.land; 8 package de.intevation.lada.model.land;
9 9
10 import java.sql.Timestamp;
11
10 import javax.persistence.Entity; 12 import javax.persistence.Entity;
13 import javax.persistence.JoinColumn;
14 import javax.persistence.OneToOne;
11 import javax.persistence.Table; 15 import javax.persistence.Table;
16 import javax.persistence.Transient;
12 17
13 import de.intevation.lada.model.StatusProtokoll; 18 import de.intevation.lada.model.StatusProtokoll;
14 19
15 /** 20 /**
16 * The persistent class for the probe database table. 21 * The persistent class for the probe database table.
17 */ 22 */
18 @Entity 23 @Entity
19 @Table(name="status_protokoll") 24 @Table(name="status_protokoll")
20 public class LStatusProtokoll extends StatusProtokoll { 25 public class LStatusProtokoll extends StatusProtokoll {
21 private static final long serialVersionUID = 1L; 26 private static final long serialVersionUID = 1L;
27
28 @OneToOne
29 @JoinColumn(name="messungs_id", insertable=false, updatable=false)
30 private LMessung messung;
31
32 @Transient
33 private Timestamp parentModified;
34
35 public Timestamp getParentModified() {
36 if (this.parentModified == null && this.messung != null) {
37 return this.messung.getTreeModified();
38 }
39 return this.parentModified;
40 }
41
42 public void setParentModified(Timestamp parentModified) {
43 this.parentModified = parentModified;
44 }
22 } 45 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)