Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Mueller2019-03-11 03:35:38 -0400
committerMarvin Mueller2019-03-11 03:35:42 -0400
commitb82a99af66a0e31654f3ab2d0a6bc07ace09c811 (patch)
treec5e3432a8627c925899dbe32a9e2b226ea97cb13
parentfce7639b20995ab94bee1cfcd67f57f3cd7b0c08 (diff)
downloadorg.eclipse.jubula.core-b82a99af66a0e31654f3ab2d0a6bc07ace09c811.tar.gz
org.eclipse.jubula.core-b82a99af66a0e31654f3ab2d0a6bc07ace09c811.tar.xz
org.eclipse.jubula.core-b82a99af66a0e31654f3ab2d0a6bc07ace09c811.zip
Fix problem with save in OME
If a category is deleted in the OME in one of the unassigned there is an exception, this should be fixed now Change-Id: I01967d0ac4aaa8b27397bc9ede124b7afa7f4eaa
-rw-r--r--org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/persistence/ObjectMappingPM.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/persistence/ObjectMappingPM.java b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/persistence/ObjectMappingPM.java
index da353f1a1..5f719b74a 100644
--- a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/persistence/ObjectMappingPM.java
+++ b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/persistence/ObjectMappingPM.java
@@ -52,14 +52,7 @@ public class ObjectMappingPM {
q.setParameter("ids", //$NON-NLS-1$
categories.stream().map(IObjectMappingCategoryPO::getId)
.collect(Collectors.toList()));
- final Query q2 = session.createQuery("DELETE FROM " //$NON-NLS-1$
- + PoMaker.getObjectMappingCategoryClass().getSimpleName()
- + " omc WHERE omc.id IN :ids"); //$NON-NLS-1$
- q2.setParameter("ids", //$NON-NLS-1$
- categories.stream().map(IObjectMappingCategoryPO::getId)
- .collect(Collectors.toList()));
q.executeUpdate();
- q2.executeUpdate();
transaction.commit();
}
}

Back to the top