changeset 8972:26c4415a360a

Fixed sequence name
author mschaefer
date Tue, 03 Apr 2018 10:27:49 +0200
parents 50416a0df385
children 35afa0349782
files backend/src/main/java/org/dive4elements/river/model/WstColumnQRange.java
diffstat 1 files changed, 19 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/model/WstColumnQRange.java	Tue Apr 03 10:18:30 2018 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/WstColumnQRange.java	Tue Apr 03 10:27:49 2018 +0200
@@ -10,15 +10,15 @@
 
 import java.io.Serializable;
 
+import javax.persistence.Column;
 import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
 import javax.persistence.GeneratedValue;
-import javax.persistence.Column;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.OneToOne;
 import javax.persistence.SequenceGenerator;
-import javax.persistence.GenerationType;
-import javax.persistence.OneToOne;
-import javax.persistence.JoinColumn;
+import javax.persistence.Table;
 
 @Entity
 @Table(name = "wst_column_q_ranges")
@@ -33,47 +33,46 @@
     }
 
     public WstColumnQRange(
-        WstColumn wstColumn,
-        WstQRange wstQRange
-    ) {
+            final WstColumn wstColumn,
+            final WstQRange wstQRange
+            ) {
         this.wstColumn = wstColumn;
         this.wstQRange = wstQRange;
     }
 
     @Id
     @SequenceGenerator(
-        name           = "SEQUENCE_WST_Q_RANGES_ID_SEQ",
-        sequenceName   = "WST_Q_RANGES_ID_SEQ",
-        allocationSize = 1)
+            name = "SEQUENCE_WST_COLUMN_Q_RANGES_ID_SEQ", sequenceName = "WST_COLUMN_Q_RANGES_ID_SEQ",
+            allocationSize = 1)
     @GeneratedValue(
-        strategy  = GenerationType.SEQUENCE,
-        generator = "SEQUENCE_WST_Q_RANGES_ID_SEQ")
+            strategy  = GenerationType.SEQUENCE,
+            generator = "SEQUENCE_WST_COLUMN_Q_RANGES_ID_SEQ")
     @Column(name = "id")
     public Integer getId() {
-        return id;
+        return this.id;
     }
 
-    public void setId(Integer id) {
+    public void setId(final Integer id) {
         this.id = id;
     }
 
     @OneToOne
     @JoinColumn(name = "wst_column_id" )
     public WstColumn getWstColumn() {
-        return wstColumn;
+        return this.wstColumn;
     }
 
-    public void setWstColumn(WstColumn wstColumn) {
+    public void setWstColumn(final WstColumn wstColumn) {
         this.wstColumn = wstColumn;
     }
 
     @OneToOne
     @JoinColumn(name = "wst_q_range_id" )
     public WstQRange getWstQRange() {
-        return wstQRange;
+        return this.wstQRange;
     }
 
-    public void setWstQRange(WstQRange wstQRange) {
+    public void setWstQRange(final WstQRange wstQRange) {
         this.wstQRange = wstQRange;
     }
 }

http://dive4elements.wald.intevation.org