Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/model/land/LOrtszuordnung.java @ 849:d0a591b3eade
Added missing file header.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 27 Jan 2016 15:32:49 +0100 |
parents | e49494d97437 |
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.Column; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.Transient; /** * The persistent class for the ortszuordnung database table. */ @Entity @Table(name="ortszuordnung") public class LOrtszuordnung extends de.intevation.lada.model.Ortszuordnung { private static final long serialVersionUID = 1L; @OneToOne @JoinColumn(name="probe_id", insertable=false, updatable=false) private LProbe probe; @Column(name="tree_modified") private Timestamp treeModified; @Transient private Timestamp parentModified; public LOrtszuordnung() { } public Timestamp getTreeModified() { return this.treeModified; } public void setTreeModified(Timestamp treeModified) { this.treeModified = treeModified; } public Timestamp getParentModified() { if (this.parentModified == null && this.probe != null) { return this.probe.getTreeModified(); } return this.parentModified; } public void setParentModified(Timestamp parentModified) { this.parentModified = parentModified; } }