[PATCH 4 of 8] Fixed sequence name

Wald Commits scm-commit at wald.intevation.org
Tue Apr 3 10:44:56 CEST 2018


# HG changeset patch
# User mschaefer
# Date 1522744069 -7200
# Node ID 26c4415a360a33438e3a420f1087f6e6046d0c3c
# Parent  50416a0df38590909a5eadd7fb0d1c2b10cf13f0
Fixed sequence name

diff -r 50416a0df385 -r 26c4415a360a backend/src/main/java/org/dive4elements/river/model/WstColumnQRange.java
--- 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.GeneratedValue;
+import javax.persistence.GenerationType;
 import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.OneToOne;
+import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
-import javax.persistence.GeneratedValue;
-import javax.persistence.Column;
-import javax.persistence.SequenceGenerator;
-import javax.persistence.GenerationType;
-import javax.persistence.OneToOne;
-import javax.persistence.JoinColumn;
 
 @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;
     }
 }


More information about the Dive4Elements-commits mailing list