view 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
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
 * Software engineering by Intevation GmbH
 *
 * This file is Free Software under the GNU GPL (v>=3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out
 * the documentation coming with IMIS-Labordaten-Application for details.
 */
package de.intevation.lada.model.land;

import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import de.intevation.lada.model.StatusProtokoll;

/**
 * The persistent class for the probe database table.
 */
@Entity
@Table(name="status_protokoll")
public class LStatusProtokoll extends StatusProtokoll {
    private static final long serialVersionUID = 1L;

    @OneToOne
    @JoinColumn(name="messungs_id", insertable=false, updatable=false)
    private LMessung messung;

    @Transient
    private Timestamp parentModified;

    public Timestamp getParentModified() {
        if (this.parentModified == null && this.messung != null) {
            return this.messung.getTreeModified();
        }
        return this.parentModified;
    }

    public void setParentModified(Timestamp parentModified) {
        this.parentModified = parentModified;
    }
}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)