changeset 209:8f6242579a85

Moved sequence generator to id property and set allocation size to 1.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 02 Jul 2013 15:56:26 +0200
parents 832e67663fd9
children a305412206a3
files src/main/java/de/intevation/lada/model/LOrt.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/LOrt.java	Tue Jul 02 15:12:52 2013 +0200
+++ b/src/main/java/de/intevation/lada/model/LOrt.java	Tue Jul 02 15:56:26 2013 +0200
@@ -21,7 +21,6 @@
  */
 @Entity
 @Table(name = "l_ort", schema = "public")
-@SequenceGenerator(name = "LORT_ID_STORE", sequenceName = "l_ort_id_seq")
 public class LOrt implements java.io.Serializable {
 
 	private int POrtId;
@@ -52,6 +51,7 @@
 
 	@Id
 	@Column(name = "p_ort_id", unique = true, nullable = false)
+	@SequenceGenerator(name = "LORT_ID_STORE", sequenceName = "l_ort_id_seq", allocationSize = 1)
 	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "LORT_ID_STORE")
 	public int getPOrtId() {
 		return this.POrtId;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)