Commit Graph

1258 Commits

Author SHA1 Message Date
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