Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
168:86a1bd9cc50e | 169:7929f4144d2f |
---|---|
20 | 20 |
21 private String name; | 21 private String name; |
22 | 22 |
23 @Id | 23 @Id |
24 @SequenceGenerator( | 24 @SequenceGenerator( |
25 name = "SEQUENCE RIVERS_ID_SEQ", | 25 name = "SEQUENCE RIVERS_ID_SEQ", |
26 sequenceName = "RIVERS_ID_SEQ") | 26 sequenceName = "RIVERS_ID_SEQ", |
27 allocationSize = 1) | |
27 @GeneratedValue( | 28 @GeneratedValue( |
28 strategy = GenerationType.SEQUENCE, | 29 strategy = GenerationType.SEQUENCE, |
29 generator = "SEQUENCE RIVERS_ID_SEQ") | 30 generator = "SEQUENCE RIVERS_ID_SEQ") |
30 @Column(name = "id") | 31 @Column(name = "id") |
31 public Integer getId() { | 32 public Integer getId() { |
45 this.name = name; | 46 this.name = name; |
46 } | 47 } |
47 | 48 |
48 public River() { | 49 public River() { |
49 } | 50 } |
51 | |
52 public River(String name) { | |
53 this.name = name; | |
54 } | |
50 } | 55 } |
51 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 56 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |