Heath Thomann
1345e75631
OPENJPA-758: Added code to check the ClassResolver to get a class loader when attempting to load a ValueHandler or FieldStrategy.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1155108 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 21:20:47 +00:00
Heath Thomann
49f14ecdeb
OPENJPA-2006: If flushing, also pre-flush non-provisional entities to allow sequence ID population - merged Jeremy's changes from trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1141193 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 18:45:09 +00:00
Heath Thomann
2ede6e480c
OPENJPA-2011: Optionally prevent reparsing annotations in query mode - merged Mike's changes from trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1140902 13f79535-47bb-0310-9956-ffa450edef68
2011-06-28 23:22:20 +00:00
Heath Thomann
17f3f734eb
OPENJPA-2010: Check line number and source file before logging duplicate meta data warning - merged Mike's changes from trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1140304 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 20:34:33 +00:00
Heath Thomann
c20c89ab53
Update BrokerImpl to skip check for duplicate ids when they are auto generated - merged Rick's changes from trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1084264 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 17:39:41 +00:00
Heath Thomann
2269ea2fab
OPENJPA-1911: fix merge problem for entities with derived id - merged this code from Fay's changes for trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1069924 13f79535-47bb-0310-9956-ffa450edef68
2011-02-11 19:23:29 +00:00
Jody Grassel
d46f649e32
OPENJPA-1890: Fix NPE when an embeddable is set to a managed entity more then once, merged from Fay's changes for trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1043597 13f79535-47bb-0310-9956-ffa450edef68
2010-12-08 18:49:17 +00:00
Michael Dick
35740819fe
OPENJPA-1790: Added Proxy for concurrent maps.
...
Submitted By: Heath Thomann, ported from Jody's patch for trunk
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1034584 13f79535-47bb-0310-9956-ffa450edef68
2010-11-12 22:10:12 +00:00
Michael Dick
9e389d2d28
OPENJPA-1790: Added Proxy for concurrent maps.
...
Submitted By: Heath Thomann, ported from Jody's patch for trunk
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1034583 13f79535-47bb-0310-9956-ffa450edef68
2010-11-12 22:09:42 +00:00
Michael Dick
d8782f49ab
OPENJPA-1814: JPQL fails with Group By and Having aggregate_expression IN (subquery)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1003209 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30 19:21:25 +00:00
Catalina Wei
f0c38d38a5
OPENJPA-1736: Mappings with foreign keys as identity fields sometimes not resolved correctly
...
back-out changes in 2.0.x branch.
must be pre-approved before committing changes to 2.0.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@988277 13f79535-47bb-0310-9956-ffa450edef68
2010-08-23 19:45:14 +00:00
Catalina Wei
82c9f910b5
OPENJPA-1736: Mappings with foreign keys as identity fields sometimes not resolved correctly
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@987773 13f79535-47bb-0310-9956-ffa450edef68
2010-08-21 15:46:49 +00:00
Donald Woods
697b34b9ee
OPENJPA-1712 Upgrade builds to use Apache hosted Nexus repo. Backported from trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@983230 13f79535-47bb-0310-9956-ffa450edef68
2010-08-07 14:00:37 +00:00
Michael Dick
d20e84a294
OPENJPA-1722, OPENJPA-1690: Make DistinctResultList serializable, and add writeReplace method.
...
Submitted by: Dianne Richards and Pinaki Poddar
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@979418 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 19:43:36 +00:00
Michael Dick
d39c580688
OPENJPA-1742: move cfName logic to JDBCConfiguration, add tests for nonJTADataSource
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@966602 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 11:58:16 +00:00
Michael Dick
e34e85396e
OPENJPA-1501: trim trailing whitespace for entities with String IDs
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@966225 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 13:42:53 +00:00
Michael Dick
a2d0e05649
OPENJPA-1704: Fix PCEnhancer to generate proper readExternal method. Merged to 2.0.x - submitted by Rick Curtis
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@965610 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 20:02:23 +00:00
Pinaki Poddar
9c3e403308
OPENJPA-703: Merge Query Statistics related changes
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@935078 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 20:49:09 +00:00
Richard G. Curtis
dca363c293
OPENJPA-1630: Synchronize when modifying MetaDataRepository._registered regardless of MetaDataRepository.Preload setting.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@934478 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 16:38:27 +00:00
Donald Woods
171a36f210
OPENJPA-1625 Inconsistent creation of StateManagerImpl in BrokerImpl. Merged in from trunk r932743 by Fay.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@932794 13f79535-47bb-0310-9956-ffa450edef68
2010-04-10 21:33:38 +00:00
Donald Woods
3b15af9b8d
OPENJPA-1569 @Strategy triggers an InvalidStateException for fields which are declared as Java interfaces. Contributed by Jerry Carter.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@932771 13f79535-47bb-0310-9956-ffa450edef68
2010-04-10 17:40:23 +00:00
Richard G. Curtis
e973d26a72
OPENAJPA-1603: Decouple the QueryCache from the DataCache. Code contributed by Mike Dick and Rick Curtis.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@928968 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 03:43:20 +00:00
Donald Woods
071e698899
OPENJPA-1597 Revert code added to DetachManager to unproxy objects when detached in-place. Updated tests to verify old behavior of detached entites still having references, but that they are removed during serialization.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@928271 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 20:53:53 +00:00
Michael Dick
8987041469
OPENJPA-1550:
...
Set failedObject on RollbackException.
Submitted By: Heath Thomann
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@927266 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 03:55:39 +00:00
Richard G. Curtis
1c0abb5207
OPENJPA-1591: Refactor/rename DataCacheScheduler to allow for greater extensibility.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@926249 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 18:29:15 +00:00
Richard G. Curtis
87ea1de7c2
OPENJPA-1591: Add PersistenceCapeable setter to StateManagerImpl to allow for greater extensibility.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@926180 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 16:50:48 +00:00
Richard G. Curtis
72d0c20634
OPENJPA-1591: Make AttachManager a public class to allow for code outside of org.apache.openjpa.kernel to access it.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@926178 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 16:48:49 +00:00
Donald Woods
773eefc313
OPENJPA-1097 Cleanup imports and add more comments on the before/after behavior of writeReplace().
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@926104 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 14:25:22 +00:00
Richard G. Curtis
c20a4ef303
OPENJPA-1545: Only detach StateManagers that aren't already detached.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@925918 13f79535-47bb-0310-9956-ffa450edef68
2010-03-21 22:13:22 +00:00
Donald Woods
4f9de8e360
OPENJPA-1097 Use DetachedStateField to determine when to keep in the serialized entities or not
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@925416 13f79535-47bb-0310-9956-ffa450edef68
2010-03-19 20:51:20 +00:00
Michael Dick
bd9b59c90f
OPENJPA-1581:
...
make assertOpen public and call assertOpen before returning JPA cache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924868 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 15:44:25 +00:00
Pinaki Poddar
2ebb6e475a
Better error message for multi-valued object path traversal
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924633 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 04:38:57 +00:00
Pinaki Poddar
1b20902b50
OPENJPA-1565,OPENJPA-1578:
...
Modify tests to raise correct lock/query exception
Fill in details in exception
Use retreive mode while initializing not store mode
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924626 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 03:42:50 +00:00
Jeremy Bauer
04bb066475
OPENJPA-1410 Disable loading of dynamic enhancement agent if OpenJPA is not loaded with the system classloader.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924395 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:58:40 +00:00
Donald Woods
e56be85085
OPENJPA-1097 Remove duplicate code in DetachManager and cleanup comments/traces in tests
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923958 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 20:08:28 +00:00
Pinaki Poddar
8dc74c1e59
Do not repeat class name in stringfied object id
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923938 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 18:58:37 +00:00
Donald Woods
a99ea6218f
OPENJPA-1097 Revert previous DetachManager and TestProxyCollection changes in r919696. New code changes Proxies to always remove classes on serialization if the entity is detachable and one of our Proxy subclasses.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923873 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 17:09:45 +00:00
Pinaki Poddar
845f9b5018
OPENJPA-1578: Set CacheMode properties properly
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923755 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 14:30:53 +00:00
Pinaki Poddar
d1b0d0fd6d
OPENJPA-1575: Detect parametrized fields in a query expression to exclude queries from cache that use parameters for externized fields.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923441 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 21:07:14 +00:00
Pinaki Poddar
5fec1aaaa6
Print unenhanced classes one per line for better readability.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922312 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 16:15:31 +00:00
Pinaki Poddar
732ff354b3
OPENJPA-1566: Allow access to keys of the statistics.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922311 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 16:14:47 +00:00
Pinaki Poddar
f04031edc1
OPENJPA-1565: Raise correct timeout exceptions.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922290 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 15:17:58 +00:00
Pinaki Poddar
4be5a5a194
OPENJPA-1565: Raise correct time out exception
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922288 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 15:08:16 +00:00
Fay Wang
f69da24268
OPENJPA-1505: allow duplicate entity listeners to be configurable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@921538 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 20:05:09 +00:00
Richard G. Curtis
137ad1bacc
OPENJPA-1559: Make DataCacheManager initialization thread safe.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@921410 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 15:47:00 +00:00
Donald Woods
dbe6745966
OPENJPA-1524 Update JNDI lookup to find TransactionManager when running in Apache Aries. Still need to implement a better solution for non-Aries based OSGi environments.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920553 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 22:48:24 +00:00
Michael Dick
c58af533fb
OPENJPA-1178:
...
Remove uneeded imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920540 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 22:07:27 +00:00
Michael Dick
62092d763a
OPENJPA-1118:
...
Remove Numbers.valueOf() - prefer autoboxing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920503 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 20:43:37 +00:00
Donald Woods
b9a230567e
OPENJPA-1097 Detachment processing of our proxied mutable types (Date, Timestamp, etc) needs to be consistent as EM.clear() was not unproxying JavaTypes.OBJECT fields but detach()/detachAll() were. Thanks to Rick Curtis for the DetachManager changes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919696 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 03:26:24 +00:00
Donald Woods
bb538f49f9
OPENJPA-1545 Fix checkstyle failure due to line too long (124 chars)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919661 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 22:55:05 +00:00