# HG changeset patch # User Raimund Renkert # Date 1373903466 -7200 # Node ID 1cdb6b8a084389d16b9d237fc0a9af76b8a8a26e # Parent 18f87f4ff767487696f6edeff684f38e4fabccb4 Added k_id column to LKommentrM object to be able to find and delete it. diff -r 18f87f4ff767 -r 1cdb6b8a0843 src/main/java/de/intevation/lada/model/LKommentarM.java --- a/src/main/java/de/intevation/lada/model/LKommentarM.java Mon Jul 15 17:50:18 2013 +0200 +++ b/src/main/java/de/intevation/lada/model/LKommentarM.java Mon Jul 15 17:51:06 2013 +0200 @@ -24,6 +24,7 @@ public class LKommentarM implements java.io.Serializable { private LKommentarMId id; + private Integer kId; private String probeId; private Integer messungsId; private String erzeuger; @@ -65,7 +66,16 @@ this.id = id; } - @Column(name = "probe_id", nullable = false, insertable = false, updatable = false) + @Column(name = "k_id", nullable = false, insertable = false, updatable = false) + public Integer getKId() { + return kId; + } + + public void setKId(Integer kId) { + this.kId = kId; + } + + @Column(name = "probe_id", nullable = false, insertable = false, updatable = false) public String getProbeId() { return probeId; } diff -r 18f87f4ff767 -r 1cdb6b8a0843 src/main/java/de/intevation/lada/rest/LKommentarMService.java --- a/src/main/java/de/intevation/lada/rest/LKommentarMService.java Mon Jul 15 17:50:18 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/LKommentarMService.java Mon Jul 15 17:51:06 2013 +0200 @@ -179,7 +179,7 @@ new QueryBuilder( repository.getEntityManager(), LKommentarM.class); - builder.and("kId", kId) + builder.and("KId", kId) .and("messungsId", messungsId) .and("probeId", probeId); Response response = repository.filter(builder.getQuery());