From 23341c871cc395924aa984976c725af06af84315 Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Sat, 13 Feb 2010 00:10:11 +0000 Subject: [PATCH] OPENJPA-1509. In-mem bulk update + enums. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@909669 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/openjpa/kernel/QueryImpl.java | 1 + .../resources/org/apache/openjpa/kernel/localizer.properties | 2 ++ 2 files changed, 3 insertions(+) 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 819a91c3c..9eaa8cd06 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 @@ -1163,6 +1163,7 @@ public class QueryImpl case JavaTypes.LOCALE: case JavaTypes.OBJECT: case JavaTypes.OID: + case JavaTypes.ENUM: sm.settingObjectField(into, i, sm.fetchObjectField(i), val, set); break; diff --git a/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties b/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties index b0f68b3aa..03978bc29 100644 --- a/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties +++ b/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties @@ -348,6 +348,8 @@ bad-datastore-method: Method "{0}(StoreContext, ClassMetaData, boolean, Map, \ the in-memory method instead (a method with the same signature but with an \ Object argument) and want this query to execute in-memory, supply a \ Collection of candidates to filter. +only-update-primitives: Bulk update queries can only update basic field values \ + (Strings, ints, enums, etc.) only-update-constants: Bulk update queries when executed in memory \ may only update to constant values. only-range-constants: Range values must be numeric constants. Illegal query: \