diff src/main/java/de/intevation/lada/model/land/Messung.java @ 1034:61354a9fa58d schema-update

Make dynamic inserts on probe and messung objects to avoid 'not null'-constraint error.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 31 Aug 2016 15:50:54 +0200
parents 812e0cace5ba
children
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/land/Messung.java	Wed Aug 31 15:49:40 2016 +0200
+++ b/src/main/java/de/intevation/lada/model/land/Messung.java	Wed Aug 31 15:50:54 2016 +0200
@@ -12,12 +12,18 @@
 import javax.persistence.OneToOne;
 import javax.persistence.Transient;
 
+import org.hibernate.annotations.DynamicInsert;
+
 
 /**
  * The persistent class for the messung database table.
  * 
  */
+// The DynamicInsert Annotation has the effect, that the persisted object still
+// has all the "null"-values. There is no reloading after the persistence
+// process!
 @Entity
+@DynamicInsert(true)
 public class Messung implements Serializable {
     private static final long serialVersionUID = 1L;
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)