diff backend/src/main/java/org/dive4elements/river/model/SedimentLoadLS.java @ 8072:5f28aa1be795

SCHEMA CHANGE: rename database tables from yield to load_ls according to respective classes.
author Tom Gottfried <tom@intevation.de>
date Wed, 06 Aug 2014 19:17:12 +0200
parents bde5f5ec7c72
children 3ae11daff343
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/model/SedimentLoadLS.java	Tue Aug 05 18:28:04 2014 +0200
+++ b/backend/src/main/java/org/dive4elements/river/model/SedimentLoadLS.java	Wed Aug 06 19:17:12 2014 +0200
@@ -26,7 +26,7 @@
 
 /** SedimentLoadLS of a certain Fraction with possibly many values. */
 @Entity
-@Table(name = "sediment_yield")
+@Table(name = "sediment_load_ls")
 public class SedimentLoadLS
 implements   Serializable
 {
@@ -89,12 +89,12 @@
 
     @Id
     @SequenceGenerator(
-        name           = "SEQUENCE_SEDIMENT_YIELD_ID_SEQ",
-        sequenceName   = "SEDIMENT_YIELD_ID_SEQ",
+        name           = "SEQUENCE_SEDIMENT_LOAD_LS_ID_SEQ",
+        sequenceName   = "SEDIMENT_LOAD_LS_ID_SEQ",
         allocationSize = 1)
     @GeneratedValue(
         strategy  = GenerationType.SEQUENCE,
-        generator = "SEQUENCE_SEDIMENT_YIELD_ID_SEQ")
+        generator = "SEQUENCE_SEDIMENT_LOAD_LS_ID_SEQ")
     @Column(name = "id")
     public Integer getId() {
         return id;
@@ -174,7 +174,7 @@
     }
 
     @OneToMany
-    @JoinColumn(name="sediment_yield_id")
+    @JoinColumn(name="sediment_load_ls_id")
     public List<SedimentLoadLSValue> getSedimentLoadLSValues() {
         return values;
     }

http://dive4elements.wald.intevation.org