diff flys-backend/src/main/java/de/intevation/flys/model/River.java @ 169:7929f4144d2f

Bound Apache Commons DBCP with Hibernate. flys-backend/trunk@1459 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 11 Mar 2011 16:23:42 +0000
parents 86a1bd9cc50e
children 4a83e14f40f9
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/River.java	Fri Mar 11 14:41:18 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/River.java	Fri Mar 11 16:23:42 2011 +0000
@@ -22,8 +22,9 @@
 
     @Id
     @SequenceGenerator(
-        name = "SEQUENCE RIVERS_ID_SEQ",
-        sequenceName = "RIVERS_ID_SEQ")
+        name           = "SEQUENCE RIVERS_ID_SEQ",
+        sequenceName   = "RIVERS_ID_SEQ",
+        allocationSize = 1)
     @GeneratedValue(
         strategy  = GenerationType.SEQUENCE,
         generator = "SEQUENCE RIVERS_ID_SEQ")
@@ -47,5 +48,9 @@
 
     public River() {
     }
+
+    public River(String name) {
+        this.name = name;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org