From 2c5377f687d087b94b56bfb5e3b2b5ba4fd3d684 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Wed, 24 Jan 2007 22:48:23 +0000 Subject: [PATCH] Throw an exception if the user tries to perform an bulk update with a parameter other than a primitive. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499601 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/openjpa/kernel/QueryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java index 5d56c14ac..d33036b47 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/QueryImpl.java @@ -1070,7 +1070,7 @@ public class QueryImpl } else if (value instanceof Constant) { val = ((Constant) value).getValue(params); } else { - val = null; + throw new UserException(_loc.get("only-update-primitives")); } OpenJPAStateManager sm = _broker.getStateManager(ob);