annotate backend/src/main/java/org/dive4elements/river/model/BoundaryKind.java @ 6955:94cb1845c667

(issue1452) Coalesce to zero to avoid NaN arithmetic.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 30 Aug 2013 15:45:14 +0200
parents 4c3ccf2b0304
children
rev   line source
5844
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
2 * Software engineering by Intevation GmbH
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
3 *
5992
4c3ccf2b0304 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5844
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
5844
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the
5992
4c3ccf2b0304 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5844
diff changeset
6 * documentation coming with Dive4Elements River for details.
5844
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
7 */
4dd33b86dc61 Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5838
diff changeset
8
5829
18619c1e7c2a Repaired internal references.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5828
diff changeset
9 package org.dive4elements.river.model;
5060
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
10
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
11 import java.io.Serializable;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
12
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
13 import javax.persistence.Column;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
14 import javax.persistence.Entity;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
15 import javax.persistence.Id;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
16 import javax.persistence.Table;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
17
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
18 @Entity
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
19 @Table(name = "boundary_kinds")
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
20 public class BoundaryKind implements Serializable {
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
21
5060
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
22 private Integer id;
5064
fb7c4ad94bd8 Fix build: some more imports some less imports some copy paste errors
Andre Heinecke <aheinecke@intevation.de>
parents: 5060
diff changeset
23 private String name;
5060
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
24
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
25 @Id
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
26 @Column(name = "id")
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
27 public Integer getId() {
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
28 return id;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
29 }
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
30
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
31 public void setId(Integer id) {
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
32 this.id = id;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
33 }
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
34
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
35 /**
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
36 * Get name.
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
37 *
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
38 * @return name of the kind of boundary as String.
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
39 */
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
40 @Column(name = "name")
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
41 public String getName() {
5060
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
42 return name;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
43 }
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
44
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
45 /**
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
46 * Set name.
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
47 *
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
48 * @param name the value to set.
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
49 */
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
50 public void setName(String name) {
5060
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
51 this.name = name;
c629719b87e7 Add the simple lookup table classes to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
52 }
5081
1d95391d056b Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5064
diff changeset
53 }

http://dive4elements.wald.intevation.org