Commit Graph

888 Commits

Author SHA1 Message Date
Pinaki Poddar 77c3242465 OPENJPA-1334: Assign default named cache to PCData
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@889449 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 22:43:45 +00:00
Donald Woods 45bc22baa3 OPENJPA-1348 Embeddable data not persisted when using WriteBehind cache flush operation. Patch from Fay Wang.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@888497 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 17:54:12 +00:00
Richard G. Curtis c1e0b6bd1c OPENJPA-1414: Performance improvements for detach processing. Patch contributed by Dianne Richards.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@888481 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 16:53:56 +00:00
Pinaki Poddar 70518a3685 Print class loader when metadata processing fails
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@888476 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 16:38:20 +00:00
Pinaki Poddar 89fe979f49 Relax metadata parsing flow
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@888475 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 16:37:19 +00:00
Pinaki Poddar 6896c31d60 Use generic type argument
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@888473 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 16:36:19 +00:00
Richard G. Curtis d17c70965d OPENJPA-1415: Suppress batched OLE messages.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@888453 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 16:03:56 +00:00
Pinaki Poddar 7cebf2ed25 Use generic type for Result
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@886290 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02 19:44:08 +00:00
Pinaki Poddar 1aaa1aa086 OPENJPA-1409: Preserve type for currentDate/Time expressions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885989 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 22:51:01 +00:00
Pinaki Poddar bc7da97658 Print class loader when metadata processing fails.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885955 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 21:46:29 +00:00
Richard G. Curtis 2c00f18f0c OPENJPA-1400: Fix PersistenceCapable.pcIsDetached() when using no statemanager and version is zero.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885872 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 19:13:01 +00:00
Donald Woods 05226837fd add missing or incorrect license headers found by rat plugin
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885573 13f79535-47bb-0310-9956-ffa450edef68
2009-11-30 20:08:15 +00:00
Albert Lee cbbe382ecd OPENJPA-1402 - Improve concurrency by not locking relation field whenever appropriate for mixed lock manager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@884744 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27 05:11:21 +00:00
Pinaki Poddar 9438918465 Cut down processing cost for identical type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@883895 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 22:05:26 +00:00
Fay Wang c3a856faa0 OPENJPA-1396: fix metadata-complete problem so that it will override @Transient annotation in the entity class
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@882172 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 15:12:36 +00:00
Catalina Wei ee30b010dc OPENJPA-1388 JPQL named parameter using a reserved word (:vlaue) resulting in ArgumentException
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@881598 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 22:59:01 +00:00
Pinaki Poddar befbc83945 OPENJPA-117: provide registered TransactionListeners as unmodifiable collection
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835280 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 07:35:26 +00:00
Fay Wang 983b34b68e OPENJPA-1380: queryCache is not refreshed for cross-join jpql.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835054 13f79535-47bb-0310-9956-ffa450edef68
2009-11-11 20:40:18 +00:00
Richard G. Curtis 19eb9f2615 OPENJPA-1379: Fixed locking problem in AbstractQueryCache when using timestamp eviction policy and added new test case.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@834252 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 22:02:15 +00:00
Pinaki Poddar faf2966816 OPENJPA-1334: Refresh should ignore cache.retrieve.mode settings. Assorted changes in property processing for usability
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832874 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 21:18:38 +00:00
Fay Wang eabd0c9454 OPENJPA-1371: fail to extract correct id from an entity during merge when this entity has compound primary key using IdClass, and some field in the IdClass is a derived identity from a not-yet-managed toOne relation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@831626 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 00:50:15 +00:00
Albert Lee 8c8636fce9 OPENJPA-1306 - Add basic extended lock scope support, 3 junit testing basic, secondary table, join table, inheritance entity, element collections (lazy/eager), 1x1 (lazy/eager) and 1xm (lazy/eager).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@831194 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 04:09:05 +00:00
Pinaki Poddar 5e73ca14ed Consolidate property key-value processings for javax.persistence.* keys. They have been accumulating in OpenJPAConf and now moving to where they belong i.e. PersistenceProductDerivation. The value processing from String/integer/enums for these properties have also been spread across many places and now being localized.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830806 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 00:22:27 +00:00
Michael Dick 530a190ebb OPENJPA-1141:
Optionally reorder MetaData resolution for entities which use derived IDs
Submitted By: Jody Grassel

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830690 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 17:34:45 +00:00
Pinaki Poddar 5016fc69f8 OPENJPA-944: Indirect recursion in fetch. Solution provided by Yanko Zhikov.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830431 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 03:43:27 +00:00
Jeremy Bauer ad1029fde4 OPENJPA-1115 Wrap non-null sequence property values so they are processed as a single property value.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830338 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 21:02:34 +00:00
Pinaki Poddar 13c88d75cf OPENJPA-1334: i) Calibrate type-based cache eligibility logic to align better with new JPA 2 as well as previous @DataCache behavior.
ii) Use CacheMode settings via FetchPlan.
iii) Cleanup hint handler etc. Replace implementation by interface. 
iv) Start organizing JPA property processing
v) Improve upon EntityManager.setProperty()

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828880 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 22:33:13 +00:00
Pinaki Poddar 8abd836dcf OPENJPA-1334: Support instance-based cache partition
move type-based cache eligibility logic to DataCacheManager from ClassMetaData.
Calibrate tests to new eligibility policy

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@827788 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 20:47:12 +00:00
Jeremy Bauer 04df2fac82 OPENJPA-1115 Committing code and tests contributed by Dianne Richards. This commit cleans up some issues with manual/user specified delimiters and adds initial support for full delimiting via the delimited-identifiers element in orm.xml.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@827727 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 16:31:39 +00:00
Jeremy Bauer 1dc5b3bd83 OPENJPA-926 Switch access type modification to log at trace instead of warning level. An access type change is normal under conditions such as XML overrides. A warning could be misconstrued as a problem that needs to be corrected in OpenJPA or application code.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@827638 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 15:00:48 +00:00
Pinaki Poddar afb95a595f OPENJPA-1085: Add toString() to PCStates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826953 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 05:02:19 +00:00
Pinaki Poddar 6d6645b7ed OPENJPA-1085: Add toString() to PCStates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826951 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 04:49:13 +00:00
Pinaki Poddar cc9644dafe Register type alias eagerly.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826944 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 03:58:17 +00:00
Pinaki Poddar 85e631a193 OPENJPA-1334: Support partitioned cache with instance-level distribution policy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@825768 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 05:07:56 +00:00
Fay Wang 79a4b76fdf OPENJPA-1352: fix instantiation of proxyCollection/Map for Arrays.asList
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@825700 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 23:35:42 +00:00
Richard G. Curtis 6d50e87a03 OPENJPA-250: Have preload process registered classes. Added simple preload testcase. Fixed problem where preloading wasn't being enabled due to a change in 821925.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@825623 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 19:28:23 +00:00
Pinaki Poddar 454afa0249 OPENJPA-1050: Use generics for AbstractDataCache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824878 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 18:46:35 +00:00
Pinaki Poddar f74e988088 OPENJPA-1341: PostRemove callback trigger points
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824454 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 18:48:10 +00:00
Albert Lee eb41b03ff4 OPENJPA-1344 Add checks for needed exception conditions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@824213 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 01:49:30 +00:00
Pinaki Poddar 0d9bd741b3 OPENJPA-1050: Use generics for LifeCycleEventManager
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@823267 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 18:52:08 +00:00
Catalina Wei 6ab4b48d55 OPENJPA-1339 JPA2 JPQL GROUP BY embeddable is not allowed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@822562 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 02:47:16 +00:00
Catalina Wei 1b91bd3b58 OPENJPA-1338 Allow comparison for VALUE(e) that maps to basic type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@822528 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 22:22:09 +00:00
Catalina Wei 020d46ef12 OPENJPA-1338 Allow comparison for VALUE(e) that maps to basic type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@822330 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 16:13:33 +00:00
Richard G. Curtis 38a54f39f7 OPENJPA-250: Moved preloading to later in the init process and only create MDR if preload is configured.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821925 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 17:14:29 +00:00
Michael Dick cc5664fe2d OPENJPA-1328:
Check cacheability in ClassMetaData instead of AbstractDataCache. 
Merged patch from Jody Grassel to trunk

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821450 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 23:40:49 +00:00
Fay Wang 97aca65ddc OPENJPA-1237: allow customized MappingRepository
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821236 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 03:42:01 +00:00
Pinaki Poddar 1ff5810e9e OPENJPA-250: Correct MetaDataRepository plug-in configuration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820804 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 21:30:39 +00:00
Pinaki Poddar 99844b6b1f OPENJPA-1332: Make some Value "private".
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820712 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 16:43:19 +00:00
Donald Woods 797de03a10 OPENJPA-1229 Update NOTICE files to match new ASF/Sun agreement for releasing early access specs. Also point to new geronimo-staging-017 to pickup latest spec releases under vote with updated notices.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820684 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 15:19:10 +00:00
Donald Woods 02471ca7e7 OPENJPA-1229 Reworked Persistence.createEMF() exception handling in the geronimo-jpa2 spec api (PFD2), which wraps all exceptions in a PersistenceException and can now return multiple provider exceptions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820440 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 20:49:09 +00:00