[Lada-commits] [PATCH 1 of 2] Removed 'nebenproben_nr' from lprobeinfoid

Wald Commits scm-commit at wald.intevation.org
Fri Oct 11 12:00:24 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1381485805 -7200
# Node ID 012f76de06874e2774cdc9a828b958cabe5a6638
# Parent  5c401065996794687fb5e15f508b9706a75cd79f
Removed 'nebenproben_nr' from lprobeinfoid.

diff -r 5c4010659967 -r 012f76de0687 src/main/java/de/intevation/lada/model/LProbeInfoId.java
--- a/src/main/java/de/intevation/lada/model/LProbeInfoId.java	Wed Oct 09 15:00:31 2013 +0200
+++ b/src/main/java/de/intevation/lada/model/LProbeInfoId.java	Fri Oct 11 12:03:25 2013 +0200
@@ -11,15 +11,12 @@
 {
     @Column(name = "probe_id", nullable = false)
     private String probeId;
-    @Column(name = "nebenproben_nr", nullable = false)
-    private String nebenprobenNr;
 
     public LProbeInfoId() {
     }
 
-    public LProbeInfoId(String probeId, String nebenprobenNr) {
+    public LProbeInfoId(String probeId) {
         this.probeId = probeId;
-        this.nebenprobenNr = nebenprobenNr;
     }
 
     public String getProbeId() {
@@ -30,14 +27,6 @@
         this.probeId = probeId;
     }
 
-    public String getNebenprobenNr() {
-        return this.nebenprobenNr;
-    }
-
-    public void setNebenprobenNr(String nebenprobenNr) {
-        this.nebenprobenNr = nebenprobenNr;
-    }
-
     @Override
     public boolean equals(Object other) {
         if ((this == other))
@@ -50,8 +39,7 @@
 
         return ((this.getProbeId() == castOther.getProbeId()) || (this
                 .getProbeId() != null && castOther.getProbeId() != null && this
-                .getProbeId().equals(castOther.getProbeId())))
-                && (this.getNebenprobenNr() == castOther.getNebenprobenNr());
+                .getProbeId().equals(castOther.getProbeId())));
     }
 
     @Override
@@ -60,7 +48,7 @@
 
         result = 37 * result
             + (getProbeId() == null ? 0 : this.getProbeId().hashCode());
-        result = 37 * result + this.getNebenprobenNr().hashCode();
+        result = 37 * result;
         return result;
     }
 }


More information about the Lada-commits mailing list