Commit Graph

1422 Commits

Author SHA1 Message Date
Mark Struberg 950ae7ab76 OPENJPA-2287 do not clear object fields for fetchObjectField
* Other objects do not get cleared neither.
* The code dates from JDO times and I've asked a few people and no one had an explanation for it
* It introduces nullpointer exceptions in cases where we have to navigate over the field a few times. E.g. in complex scenarios.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1674148 13f79535-47bb-0310-9956-ffa450edef68
2015-04-16 20:35:10 +00:00
Mark Struberg ad6d7fea70 OPENJPA-2575 temporary set TCCL to _tmpClassloader
This prevents using the wrong ClassLoader during OpenJPA boostrap
which might lead to mem leaks.

Txs to rmannibucau for the report and fix!


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1671821 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 11:54:17 +00:00
Mark Struberg 85556cb9ea OPENJPA-2576 remove @nonjava which is actually not a javadoc tag
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1671792 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 10:37:14 +00:00
Mark Struberg f1ad383f4f remove empty @return javadocs
just caused javadoc warnings...


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1671694 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 20:57:11 +00:00
Mark Struberg bdfcda04a2 remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1671256 13f79535-47bb-0310-9956-ffa450edef68
2015-04-04 09:09:16 +00:00
Heath Thomann 8129fe685b OPENJPA-2536: FetchGroup is not returning lazy fields. Applied Rick Curtis' fix to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1655360 13f79535-47bb-0310-9956-ffa450edef68
2015-01-28 15:28:40 +00:00
Jody Grassel 4540f82216 OPENJPA-1988: openjpa does not process persistence unit default <cascade-persist>
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1636415 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 18:40:59 +00:00
Richard G. Curtis 08d94d75d6 OPENJPA-2533: Reorder MetaDataRepository call to fix a bug in orm resloution.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1632647 13f79535-47bb-0310-9956-ffa450edef68
2014-10-17 18:35:03 +00:00
Heath Thomann 077ad2b446 OPENJPA-2494: A default Schema defined in a PU default (<persistence-unit-defaults>) in an orm.xml file is not being honored.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1626916 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 23:06:18 +00:00
Richard G. Curtis 0a91a631b8 OPENJPA-2506: Update JPAFacadeHelper to properly create an OpenJPA identity object. Patch contributed by Dalia Abo Sheasha.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1603251 13f79535-47bb-0310-9956-ffa450edef68
2014-06-17 18:30:35 +00:00
Richard G. Curtis e48cd3e59d OPENJPA-2508 : Account for JOIN FETCH statements when loading from the Query Cache.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1600757 13f79535-47bb-0310-9956-ffa450edef68
2014-06-05 20:49:01 +00:00
Heath Thomann d7dfa322d6 OPENJPA-2478: Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1591689 13f79535-47bb-0310-9956-ffa450edef68
2014-05-01 15:47:53 +00:00
Heath Thomann 3f33d76a34 OPENJPA-2476: Fixed OptimisticLockEx due to rounding of a Timestamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1591541 13f79535-47bb-0310-9956-ffa450edef68
2014-05-01 03:24:11 +00:00
Kevin W. Sutter b664f187d3 OPENJPA-2492. Committing a variation of the patch as provided by Romain Manni-Bucau. This patch clears up the ConcurrentHashMap issues relating to the KeySetView return type. This patch also adds a couple of asserts to an existing testcase to verify the results.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1589187 13f79535-47bb-0310-9956-ffa450edef68
2014-04-22 16:01:56 +00:00
Kevin W. Sutter b3d7fe8829 OPENJPA-2442. Just using ProxyConcurrentMaps for proxying the Map methods. Since this extends ProxyMaps anyway, this is pretty safe change. This change resolves the TestProxyManager errors in openjpa-kernel when testing with Java 8 runtime. And, it doesn't affect Java 7 runtime at all. Refer to the Comments section for more details.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1586651 13f79535-47bb-0310-9956-ffa450edef68
2014-04-11 13:33:05 +00:00
Kevin W. Sutter c0b6d88285 OPENJPA-2487. This patch provided by Romain Manni-Bucau looks good. As stated in the Comments, this patch by itself is not sufficient for Java 8 runtime support, but it is a crucial step. Follow the linked JIRAs for additional fixes required to fully support Java 8.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1586647 13f79535-47bb-0310-9956-ffa450edef68
2014-04-11 13:20:14 +00:00
Heath Thomann 030ba2a41f OPENJPA-1986: Extra queries being generated when cascading a persist - added another/similar check to the ones added by Rick.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1580913 13f79535-47bb-0310-9956-ffa450edef68
2014-03-24 16:43:40 +00:00
Richard G. Curtis 6d8a46e825 OPENJPA-2441: Remove usage of NullSafeConcurrentHashMap. Patch contributed by Dalia Abo Sheasha.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1570261 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 16:33:30 +00:00
Richard G. Curtis f01f7c4721 OPENJPA-2285: Recommitted DataCacheStoreManager improvement.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1570016 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 00:38:29 +00:00
Richard G. Curtis 731649a2c9 OPENJPA-2472: Fix concurrency bug in ClassMetaData. Patch contributed by Dalia Abo Sheasha.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1564989 13f79535-47bb-0310-9956-ffa450edef68
2014-02-05 23:12:37 +00:00
Richard G. Curtis 0527c4570d OPENJPA-2467: Fix detection of property access method names. Patch contributed by Dalia Abo Sheasha.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1564931 13f79535-47bb-0310-9956-ffa450edef68
2014-02-05 21:18:31 +00:00
Richard G. Curtis bf646350ea OPENJPA-2470 : Update DataCacheManagerImpl to use a ConcurrentHashMap rather than a HashMap.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1558594 13f79535-47bb-0310-9956-ffa450edef68
2014-01-15 22:34:05 +00:00
Richard G. Curtis d0a311efe0 OPENJPA-2463 : Change message from error to warning.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1551449 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 02:43:23 +00:00
Richard G. Curtis 9ce4d50169 OPENJPA-2233: Merge changes to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1551446 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 02:28:23 +00:00
Heath Thomann 28cad3351c OPENJPA-2449: refresh(PESSIMISTIC_WRITE) generates seperate SQL for the lock - applied to trunk Albert Lee's patch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1539200 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 23:47:16 +00:00
Mark Struberg 08035c10ef OPENJPA-2200 remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1536637 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 10:11:46 +00:00
Mark Struberg f4b2428008 OPENJPA-2437 transactional listeners added too late to observe begin event
txs 2 rmannibucau for the fix.
Patch applied with cleanup and tests pimped. 



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1536595 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 06:36:34 +00:00
Mark Struberg 70f1188d19 release preparation upgrade trunk to 2.4.0-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1535565 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 21:39:43 +00:00
Richard G. Curtis d8395bdc56 OPENJPA-2443 : Remove unnecessary import.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1535082 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 17:58:23 +00:00
Richard G. Curtis 1f38337481 OPENJPA-2443 : Fix SingleFieldManager to not check for null values for IDENTITY generated fields when flushing.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1535067 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 15:58:46 +00:00
Jody Grassel c8e3d5dcbb OPENJPA-2414: FinderCache does not consider active Fetch Groups/FetchPlan added Fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1532882 13f79535-47bb-0310-9956-ffa450edef68
2013-10-16 20:12:10 +00:00
Richard G. Curtis e719ad01e9 OPENJPA-2283 : Merge changes from 2.3.x to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1532523 13f79535-47bb-0310-9956-ffa450edef68
2013-10-15 20:32:07 +00:00
Jeremy Bauer 9f8a682a03 OPENJPA-2366 Committing code and unit tests contributed by Austin Dorenkamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1519550 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 04:18:09 +00:00
Jody Grassel ee6f4acc3f OPENJPA-2414: FinderCache does not consider active Fetch Groups/FetchPlan added Fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1516853 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 14:11:17 +00:00
Jody Grassel a0b872f5c2 OPENJPA-2413: FetchPlan.clearFetchGroups() does not retain default entry in list of active Fetch Groups.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1509031 13f79535-47bb-0310-9956-ffa450edef68
2013-07-31 21:05:37 +00:00
Jeremy Bauer ca76712e38 OPENJPA-1794 aggregate function with no result set must return null
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1506198 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 18:26:42 +00:00
Richard G. Curtis 4cf336fd95 OPENJPA-2410 : Detect SystemOut/Err in code at build time. Patch submitted by Di Wu Lau.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504673 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 21:34:23 +00:00
Heath Thomann dc2c72f8e1 OPENJPA-2355: Made changes to localizer.properties files to update the message previously added by this JIRA.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504282 13f79535-47bb-0310-9956-ffa450edef68
2013-07-17 21:18:30 +00:00
Michael Dick 8cb451d1df OPENJPA-696: Make transaction synchronization registries non-static.
Patch is old - feel free to revert if something breaks.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1501634 13f79535-47bb-0310-9956-ffa450edef68
2013-07-10 02:14:30 +00:00
Jody Grassel e406bda450 OPENJPA-2405: EntityManager.merge does not work for entity that is managed by another EntityManager
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1498565 13f79535-47bb-0310-9956-ffa450edef68
2013-07-01 16:58:11 +00:00
Mark Struberg 0834454bdb OPENJPA-2388 support for xbean shaded ASM4
txs to rmannibucau for the patch!


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1488102 13f79535-47bb-0310-9956-ffa450edef68
2013-05-31 06:05:16 +00:00
Helen Xu 5ce1ec400e OPENJPA-2374: avoid OID creation when the lookup is not required.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1471113 13f79535-47bb-0310-9956-ffa450edef68
2013-04-23 19:44:05 +00:00
Pinaki Poddar 1869a7b07e OPENJPA-2373: Add toString() for debugging
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1469653 13f79535-47bb-0310-9956-ffa450edef68
2013-04-19 01:01:31 +00:00
Helen Xu 8b75df3c9b OPENJPA-2369, eliminate the duplicate call to getUnloadedInternal function.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1468536 13f79535-47bb-0310-9956-ffa450edef68
2013-04-16 18:04:55 +00:00
Pinaki Poddar 3d11895269 OPENJPA-2365: Support for delete-by-query. Correction for hint processing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1464082 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 15:51:52 +00:00
Jeremy Bauer 7f14c7df6b Disable logging during brokerfactory de-serialization. Added type checking of plugin values.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1461876 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 22:10:35 +00:00
Kevin W. Sutter 82027f4a35 OPENJPA-2342. Changed to use the getDeclaredInterfaceNames instead of getDeclaredInterfaceTypes. All testing is looking good and should alleviate the problem of the classloading.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1461751 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 17:59:58 +00:00
Richard G. Curtis c9fa4b9bda OPENJPA-2357: Fix InvalidStateException when using the InverseManager. Fix contributed by Guillaume Chauvet.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1461090 13f79535-47bb-0310-9956-ffa450edef68
2013-03-26 12:43:29 +00:00
Pinaki Poddar e966f0f51c OPENJPA-2355: Allow more than two input argument to CONCAT()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1459091 13f79535-47bb-0310-9956-ffa450edef68
2013-03-20 22:52:18 +00:00
Richard G. Curtis 085ea3eb07 OPENJPA-2354: Remove synchronized from pcReplaceStateManager method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1458993 13f79535-47bb-0310-9956-ffa450edef68
2013-03-20 18:35:07 +00:00
Richard G. Curtis dd439b5ea9 OPENJPA-2353: Remove debug from previous commit.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1458436 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 17:58:51 +00:00
Richard G. Curtis 3d5df48bbb OPENJPA-2353: Fix bug in BrokerImpl.initializeOperatingSet() initialization after deserialization.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1458432 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 17:55:17 +00:00
Richard G. Curtis 582cfc504a OPENJPA-2353: Reduce object allocations in DetachManagerLite.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1458026 13f79535-47bb-0310-9956-ffa450edef68
2013-03-18 21:43:26 +00:00
Richard G. Curtis 1febbf7b16 OPENJPA-2353: Reduce object allocations in BrokerImpl.initializeOperatingSet().
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1457967 13f79535-47bb-0310-9956-ffa450edef68
2013-03-18 20:14:06 +00:00
Richard G. Curtis 47e402ce90 OPENJPA-2353: Reduce BitSet object allocations in StateManagerImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1457966 13f79535-47bb-0310-9956-ffa450edef68
2013-03-18 20:13:10 +00:00
Richard G. Curtis 9f0f92fc07 OPENJPA-2285: Revert prior changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1455204 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 16:01:42 +00:00
Richard G. Curtis e0bb4cd7c7 OPENJPA-2348: Revert prior commit.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1453928 13f79535-47bb-0310-9956-ffa450edef68
2013-03-07 15:50:36 +00:00
Richard G. Curtis 1e2b753afa OPENJPA-2348: Cache calculated hashcode in OpenJPAId.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1452884 13f79535-47bb-0310-9956-ffa450edef68
2013-03-05 16:25:55 +00:00
Richard G. Curtis 8c23eb3f48 OPENJPA-2347: Make StateManagerImpl more extensibile.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1452874 13f79535-47bb-0310-9956-ffa450edef68
2013-03-05 16:13:14 +00:00
Richard G. Curtis 80d1fddb75 OPENJPA-2346: Minor performance improvement to MetaDataRepository.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1452872 13f79535-47bb-0310-9956-ffa450edef68
2013-03-05 16:09:21 +00:00
Jody Grassel 3bdb0b95d8 OPENJPA-OpenJPA must support processing puRoot and jar-file URLs as jar-formatted InputStreams
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1446294 13f79535-47bb-0310-9956-ffa450edef68
2013-02-14 18:35:07 +00:00
Helen Xu e12dcddc38 OPENJPA-2295 restore the old method to be compatible.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1437190 13f79535-47bb-0310-9956-ffa450edef68
2013-01-22 21:38:21 +00:00
Pinaki Poddar 01cae73832 OPENJPA-2325: Correct evaluation of identity type for MappedSuperclass without an identity field
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1436957 13f79535-47bb-0310-9956-ffa450edef68
2013-01-22 14:35:32 +00:00
Heath Thomann 2c3ec95860 OPENJPA-2324: Option to express literal in query string directly into generate SQL - applied Albert's patch to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1436543 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 18:41:30 +00:00
Heath Thomann 7d897d94ce OPENJPA-2298: Applied Kevin's changes to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1415484 13f79535-47bb-0310-9956-ffa450edef68
2012-11-30 03:09:12 +00:00
Jody Grassel 89b44bbf6c OPENJPA-2288: MetaDataRepository should be able to filter classes from other app ClassLoaders in JEE Env
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1414398 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 20:51:44 +00:00
Helen Xu e0d5b0505f OPENJPA-2295 speed up query metadata lookup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1414275 13f79535-47bb-0310-9956-ffa450edef68
2012-11-27 17:26:11 +00:00
Richard G. Curtis d6367874ae OPENJPA-1532: Minor message updates.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1409441 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 21:43:09 +00:00
Richard G. Curtis 160c71e068 OPENJPA-2285: Don't recache data from an Embedded StateManager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1409420 13f79535-47bb-0310-9956-ffa450edef68
2012-11-14 21:31:27 +00:00
Richard G. Curtis c6fa108b30 OPENJPA-2293: Don't check for listeners if exclude-default-listener is configured.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1406241 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 17:43:22 +00:00
Richard G. Curtis cd7851e9d3 OPENJPA-2292: Use java.util.IdentityHashMap in BrokerImpl.initializeOperatingSet to reduce object allocations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1406228 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 17:17:04 +00:00
Richard G. Curtis 4b230ebb53 OPENJPA-2285: DataCacheStoreManager improvement.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1402635 13f79535-47bb-0310-9956-ffa450edef68
2012-10-26 19:49:06 +00:00
Richard G. Curtis e5f91d12b4 OPENJPA-2234: Remove failing testcase.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1396185 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 18:42:12 +00:00
Richard G. Curtis 94969374f6 OPENJPA-2234: Avoid NPE when the ManagedRuntime returns a null TransactionManager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1396043 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 14:23:36 +00:00
Richard G. Curtis 4823f1748e OPENJPA-1532: Enable shared-cache-mode to turn on datacache without needing openjpa.DataCache configuration. Patch contributed by Helen Xu.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1396037 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 13:47:38 +00:00
Richard G. Curtis 1c2ec168ed OPENJPA-2171: Fix ASM static init exception text.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1392424 13f79535-47bb-0310-9956-ffa450edef68
2012-10-01 16:18:54 +00:00
Pinaki Poddar fd8e5fe865 Add some solution hint in the error message
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1391630 13f79535-47bb-0310-9956-ffa450edef68
2012-09-28 20:14:34 +00:00
Richard G. Curtis fd4ca96050 OPENJPA-2267: Fix NPE in ResultPacker when there is a null result.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1391218 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 21:05:07 +00:00
Pinaki Poddar ae3441b049 OPENJPA-2253: Clear temporary storage for audit to prevent memory leak
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1383728 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 01:25:13 +00:00
Pinaki Poddar 556d796ed3 OPENJPA-2253: Clear temporary storage for audit to prevent memory leak
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1383727 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 01:23:32 +00:00
Mark Struberg a5992927e3 OPENJPA-2171 pickup existing ASM shades if possible
To prevent classpath clashes we try to pickup a few
known ASM shades. 


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1371607 13f79535-47bb-0310-9956-ffa450edef68
2012-08-10 08:49:03 +00:00
Richard G. Curtis bcda87c67b OPENJPA-2245: Fix NotSerializableException when using Criteria and QueryCache.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1368438 13f79535-47bb-0310-9956-ffa450edef68
2012-08-02 12:54:26 +00:00
Jody Grassel 5c05a69ce6 OPENJPA-2227: OpenJPA doesn't find custom SequenceGenerators
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1367126 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 15:40:35 +00:00
Richard G. Curtis 5afd4e851b OPENJPA-2238: Don't create custom proxies for default scoped classes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1364683 13f79535-47bb-0310-9956-ffa450edef68
2012-07-23 15:35:01 +00:00
Richard G. Curtis a42c9c280a OPENJPA-2229: Add support for JBoss vfs when process Entities.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1361564 13f79535-47bb-0310-9956-ffa450edef68
2012-07-14 17:17:54 +00:00
Kevin W. Sutter 5eb13dbde9 OPENJPA-2230. Set the _activated flag when processing EventListeners in super classes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1361354 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 19:46:41 +00:00
Albert Lee f30d74802d OPENJPA-2199 - Guard null pc value.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1361285 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 16:22:16 +00:00
Pinaki Poddar dc339a98bc Reduce log level when meta class not found
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1356544 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 02:18:03 +00:00
Pinaki Poddar 318642931b OPENJPA-2030: Collect dirty fields with a smarter loop
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1354265 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 22:11:49 +00:00
Pinaki Poddar 325c7a2f2f OPENJPA-2030: Add support to detect dirty outside transaction
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1354233 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 21:04:12 +00:00
Richard G. Curtis 3f03f91eb8 OPENJPA-2209: Add comment to AbstractBrokerFactory.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346896 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 14:00:05 +00:00
Richard G. Curtis c120b18eb9 OPENJPA-2209: Allow configuration of MetaDataRepository preloading with a lowercase property.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346874 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 13:10:51 +00:00
Richard G. Curtis 7cee19d3be OPENJPA-2151: Fix NPE in ClassMetaData.hasInverseManagedFields.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1342747 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 17:58:06 +00:00
Jeremy Bauer f617557bc3 OPENJPA-2165 provide setters for element validation and tracker in new delayed proxy types
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340217 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 19:27:41 +00:00
Richard G. Curtis 32d2a85011 OPENJPA-2191: Add null check when initializing AbstractQueryCache.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1337526 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 12:50:32 +00:00
Jody Grassel 8c8e250f40 OPENJPA-2133: OpenJPA doesn't find custom mappings with an applicable class loader
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1333982 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 14:18:19 +00:00
Richard G. Curtis 432499a3a6 OPENJPA-2161: Refactor revision 1306530 and make StateManagerImpl._meta protected.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1333082 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 15:49:29 +00:00
Jeremy Bauer df8d3c4416 OPENJPA-2165 Minor fixes, more proxy types, testcases, and doc udpates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1331051 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 19:53:49 +00:00
Richard G. Curtis b7bd2c873d OPENJPA-2110: Create correct proxy type when type is defined in an abstract class.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1324759 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 13:40:53 +00:00
Mark Struberg 08b0dd2913 OPENJPA-2139 reset the BrokerFactory state if an Exception occured
This happens e.g. if the database is not available at the time the
first DB access is performed. This did lead to a complete hook up
until the whole application got restarted after the db reappeared.
This fix will now ensure that all the column-key caching and stuff
will be tried over again until the db is available again.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1311191 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 10:26:49 +00:00
Kevin W. Sutter 60e42eddda OPENJPA-2168. Forgot to check whether the base LifecycleEventManager was activated when the ValidatingLifecycleEventManager is in play.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1309812 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 12:19:20 +00:00
Kevin W. Sutter f3dbb5acad OPENJPA-2168. Modified the approach for detecting life cycle event processing.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308362 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:25:26 +00:00
Jeremy Bauer 31da969bd6 OPENJPA-2165 minor improvements to delayed collection loading
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308194 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 20:23:47 +00:00
Richard G. Curtis 9030633959 OPENJPA-2151: If transitioning from PClean to PNonTransState, don't reset dirty bitset.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308184 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 19:40:59 +00:00
Kevin W. Sutter 6b6c06330a OPENJPA-2168. Move call to check for existing Listeners higher in the call stack.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307916 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 21:57:22 +00:00
Kevin W. Sutter c5d2d2c217 OPENJPA-2151. Optimizations to StateManagerImpl.initialize and FieldMetaData access.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307622 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 21:26:31 +00:00
Kevin W. Sutter 83916ff986 OPENJPA-2164. If the field being requested is already loaded, then skip the overhead and just return the field value.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307608 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 20:56:44 +00:00
Kevin W. Sutter b897fe50cc OPENJPA-2167. Allow "none" setting for AutoDetach for debug purposes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307425 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 13:57:29 +00:00
Kevin W. Sutter 90fcd9623d OPENJPA-2167. Only attempt to fire TransactionEvents if the TransactionEventManager is not empty.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307219 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 02:19:45 +00:00
Kevin W. Sutter 208be279f9 OPENJPA-2167. Only reload the proxy fields if the field is loaded and dirty.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307217 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 02:02:50 +00:00
Albert Lee 42372cf609 OPENJPA-2163 Simplify configuration: move SingletonLifecycleEventManager from property to Compatibility option.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307018 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 17:50:19 +00:00
Albert Lee 284b6e5ced OPENJPA-2163 Add SingletonLifecycleEventManager property to interface and documentation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1306636 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 23:01:42 +00:00
Albert Lee f506835fa8 OPENJPA-2163 Change LifecycleEventManager PluginValue's singleton default value from true to false. Add SingletonLifecycleEventManager property allow previous property to switch singleton value back to true. Since LifecycleEventManager is a internal property for BeanValidation support, the SingletonLifecycleEventManager property will be kept as internal property as well.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1306592 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 20:52:08 +00:00
Richard G. Curtis b2cc17c135 OPENJPA-2161: Refactor storing ClassMetaData in StateManagerImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1306530 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 18:41:57 +00:00
Jeremy Bauer 3e1de6c8e3 OPENJPA-2165 Added support for non-db-ordered list proxies that provide the ability to do non-indexed add or remove operations without loading the collection from the database. Testcases and documentation will follow in future commits.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1306449 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 16:10:35 +00:00
Richard G. Curtis 3d04bdd463 OPENJPA-2161: Make StateManagerId public to allow for greater extensibility.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1305055 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 15:01:54 +00:00
Richard G. Curtis 1925881f5d OPENJPA-2158: Null out StateManager when lite auto detaching proxies.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1303507 13f79535-47bb-0310-9956-ffa450edef68
2012-03-21 19:06:42 +00:00
Jeremy Bauer f4e1d195bb OPENJPA-2120 add optimization to methods that use a field manager
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1300380 13f79535-47bb-0310-9956-ffa450edef68
2012-03-13 22:10:24 +00:00
Jeremy Bauer ecf492ac46 OPENJPA-2143 reverting back to previous revision
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1297989 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 15:20:04 +00:00
Jody Grassel 8971fda1aa OPENJPA-2146: StateManager for Embeddable may throw Exception while initializing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1294791 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 19:08:03 +00:00
Jeremy Bauer ce44b7ddcd OPENJPA-2143 reduce lock contention on LifecycleEventManager
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1293402 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 20:35:02 +00:00
Dianne E. Richards c275da64ab OPENJPA-2142 Handle merge of new object with Entity Id field
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1293315 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 16:09:31 +00:00
Richard G. Curtis 1f3f320af3 OPENJPA-2137: Make some StateManagerImpl fields protected to allow for greater extensibility.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1292044 13f79535-47bb-0310-9956-ffa450edef68
2012-02-21 21:39:49 +00:00
Richard G. Curtis 6599b7b403 OPENJPA-2136: Fix NPE when using LiteAutoDetach.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1292034 13f79535-47bb-0310-9956-ffa450edef68
2012-02-21 21:14:57 +00:00
Albert Lee 408d8b4463 Update pom.xml version to 2.3.0-SNAPSHOTS in trunk after 2.2.0 is released.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1291435 13f79535-47bb-0310-9956-ffa450edef68
2012-02-20 20:37:05 +00:00
Albert Lee 4d1e1bc8df [maven-release-plugin] prepare release 2.2.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1244808 13f79535-47bb-0310-9956-ffa450edef68
2012-02-16 00:30:29 +00:00
Kevin W. Sutter 2bbbcc9d73 OPENJPA-2099. With Pinaki's green light, we're going to back out the changes for OpenJPA-2099 and OpenJPA-2111 so that we can make progress on the OpenJPA 2.2.0 release.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1243702 13f79535-47bb-0310-9956-ffa450edef68
2012-02-13 21:23:54 +00:00
Kevin W. Sutter 91eb9d4792 OPENJPA-2122. The conditional to check for the proper Java 7 major version (51) was incorrect. I also updated how we invoked the ASM hook so that the Trace message in the finally block would output the correct number of bytes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1241719 13f79535-47bb-0310-9956-ffa450edef68
2012-02-08 00:52:32 +00:00
Jeremy Bauer e14af5d7ab OPENJPA-2120 Add option for optimizing copy operations for qualifying id classes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1241207 13f79535-47bb-0310-9956-ffa450edef68
2012-02-06 22:03:02 +00:00
Jody Grassel 52ea95686b OPENJPA-1901: QueryCacheStoreQuery CachedObjectId is not Serializable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1240284 13f79535-47bb-0310-9956-ffa450edef68
2012-02-03 18:34:30 +00:00
Pinaki Poddar fc1ea49c38 OPENJPA-2116: Optimize frequent operations a) field denotes a relation and b) schema name needs conversion.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1236326 13f79535-47bb-0310-9956-ffa450edef68
2012-01-26 17:56:12 +00:00
Pinaki Poddar 3929e28cda OPENJPA-1050: Use generics
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1236282 13f79535-47bb-0310-9956-ffa450edef68
2012-01-26 16:37:54 +00:00
Pinaki Poddar e37a589072 OPENJPA:1050: Use generics
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1236280 13f79535-47bb-0310-9956-ffa450edef68
2012-01-26 16:36:38 +00:00
Pinaki Poddar 49adef7c61 OPENJPA-2099: Use thread gate for reused select. Guard parameter binding
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1235533 13f79535-47bb-0310-9956-ffa450edef68
2012-01-24 22:26:27 +00:00
Richard G. Curtis 2c65619be4 OPENJPA-2068: Fixing a bug where we were incorrectly removing LRS proxy fields while loading the proxy.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1233434 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 15:33:01 +00:00
Pinaki Poddar c2e11e7f13 Let PCEhancer report the class it is enhancing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1233021 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 19:57:22 +00:00
Pinaki Poddar 1a50b5fe76 OPENJPA:2099: Cacheing select construct with class/field strategy. Adding configuration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1232415 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 14:04:07 +00:00
Richard G. Curtis d354f7cf84 OPENJPA-2107: Only reset Broker.flushed flag if initializing a new Statemanager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1231375 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 22:59:33 +00:00
Mark Struberg 3beb74571a switch back trunk to 2.2.0-SNAPSHOT
we wil restart the 2.2.x after a few important fixes on trunk


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1230495 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 11:28:50 +00:00
Mark Struberg 6289157f9c release preparation. Move trunk to 2.3.0-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1229557 13f79535-47bb-0310-9956-ffa450edef68
2012-01-10 14:29:08 +00:00
Heath Thomann 59d0a5262b OPENJPA-2102: Added code to compare decoded URLs in AbstractCFMetaDataFactory.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1227364 13f79535-47bb-0310-9956-ffa450edef68
2012-01-04 22:29:38 +00:00
Jody Grassel 1a383857ff OPENJPA-2094: Metadata processing needs to support jar:file URLs that address Jar directories
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1213958 13f79535-47bb-0310-9956-ffa450edef68
2011-12-13 22:05:28 +00:00
Richard G. Curtis e24439984b OPENJPA-2068: Optimized calendar creation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1212503 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 16:30:58 +00:00
Mark Struberg 4bffcc9c9a OPENJPA-1873 fix PostLoad entity listener behaviour
This fix introduces a new flag POST_LOAD_ON_MERGE wich is disabled
by default, retaining the old behaviour.
Enabling it will guarantee that the Entity posted to PostLoad entity 
listeners are always the one from the database. This fixes the old
habit that PostLoad will also get triggered (with false/mixed values)
for lazy loading, merging, etc.



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1211873 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 13:27:31 +00:00
Albert Lee 9fdf242b40 OPENJPA-2085 Use ASM to reconstruct the missing StackMapTable attribute in class file after entity enhancement. BCClassWriter is contributed by Brett Kail.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1209373 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 06:42:55 +00:00
Richard G. Curtis c3d9750f74 OPENJPA-2047: Make persistence-aware message less verbose. Patch contributed by Jacob Nowosatka.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1207647 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 22:01:50 +00:00
Richard G. Curtis d52e73f024 OPENJPA-2075: Abstract parameter handling from QueryImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1203337 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 19:13:07 +00:00
Richard G. Curtis f81908f3ac OPENJPA-1986: Update migration consideration docs and Compatibility javadoc.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1202800 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 17:30:19 +00:00
Pinaki Poddar 83bc7aa8ef Relax query engine for extension
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1200388 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 15:46:14 +00:00
Albert Lee d64a3e5fdb OPENJPA-2071 Guarded NPE against isInterface call from ResultPacker constructor with null parameter
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1199919 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 19:02:10 +00:00