Richard G. Curtis
f877a44a63
OPENJPA-1470: Change INFO messages in PCEnhancer to TRACE messages.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@900589 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18 22:24:44 +00:00
Richard G. Curtis
a91f6d553e
OPENJPA-1467: Revert ConcurrentDataCache.removeAllInternal(...) to prior revision (5529850).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@900521 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18 19:29:33 +00:00
Fay Wang
36e31ae445
OPENJPA-1460: resolve visibility scope of orm.xml.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@900245 13f79535-47bb-0310-9956-ffa450edef68
2010-01-17 23:41:45 +00:00
Richard G. Curtis
5a8c5de491
OPENJPA-250: Missed a line in the previous merge and remove a test from being excluded in pom.xml
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899732 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 17:49:46 +00:00
Pinaki Poddar
ab032d8f73
Add constructor for more flexible signature
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899532 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 05:26:43 +00:00
Pinaki Poddar
342c27dfd5
Add Glassfish JNDI location
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899531 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 05:26:11 +00:00
Pinaki Poddar
db20d8a011
OPENJPA-900: Reduce reflection cost. Enumerate hint keys.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899530 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 05:25:25 +00:00
Pinaki Poddar
b5a412fd42
OPENJPA-900: Reduce reflection in hint processing. Redesign with explicit hint keys.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@899529 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 05:23:15 +00:00
Fay Wang
2331d20522
OPENJPA-1458: fix named parameter problem
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@898936 13f79535-47bb-0310-9956-ffa450edef68
2010-01-13 20:49:01 +00:00
Donald Woods
55bf86a4c8
OPENJPA-1456 Replace StringBuffer usage with StringBuilder for minor performance/scalability improvement
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@898168 13f79535-47bb-0310-9956-ffa450edef68
2010-01-12 03:31:11 +00:00
Richard G. Curtis
0efea474f2
OPENJPA-250: Committing to trunk. Submitted by Patrick Linskey, Simon Droscher, and Rick Curtis.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@898024 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 19:34:23 +00:00
Pinaki Poddar
5cef9cff17
reduce performance cost of isCacheable().
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@897308 13f79535-47bb-0310-9956-ffa450edef68
2010-01-08 19:40:10 +00:00
Catalina Wei
a0e001e40a
OPENJPA-1442 JPA2 java.sql.Date, java.math.BigDecimal, or java.math.BigInteger types as derived primary keys are not Enhanced correctly
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893642 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 22:33:57 +00:00
Pinaki Poddar
fded22b2e0
OPENJPA-1445: Support enums as External values
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893503 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 13:06:03 +00:00
Pinaki Poddar
df5a403700
OPENJPA-1444: distinct query
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893448 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 09:35:07 +00:00
Pinaki Poddar
29e919f2cc
OPENJPA-1444: distinct query
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893447 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 09:33:28 +00:00
Pinaki Poddar
3dee418d36
OPENJPA-1444: Use special result list for distinct query.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893420 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 07:57:31 +00:00
Richard G. Curtis
35377aace9
OPENJPA-1441: Set pcVersionInit FieldMetaData to transient in PCEnhancer.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@893181 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 14:27:19 +00:00
Fay Wang
5d9f08e728
OPENJPA-1432: preserve Compatibility flags set in compliance with the Specification.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@892397 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 23:24:23 +00:00
Michael Dick
40f017a2e9
OPENJPA-714:
...
Check l1 cache when looking for managed instances when cascading.
Submitted By: Jody Grassel
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@891120 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 04:17:43 +00:00
Pinaki Poddar
f5c216eb19
OPENJPA-1050: Restore existing method signature but deprecate them.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@890859 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 16:16:48 +00:00
Pinaki Poddar
fd5c79aabc
OPENJPA-1050: Restore existing method signature but deprecate them.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@890857 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 16:15:21 +00:00
Donald Woods
60cae2ff51
OPENJPA-1103 Upgrade to 1.0-SNAPSHOT versions of the jpa2 and bv spec apis and remove the early access disclaimer.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@889818 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 21:19:55 +00:00
Pinaki Poddar
b119e2b959
OPENJPA-1050: Use generic types whenever possible. Replace ordered map with native implementation wrapper.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@889801 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 20:33:32 +00:00
Pinaki Poddar
4715cc737b
OPENJPA-1050: Use generic types whenever possible. Replace ordered map with native implementation wrapper.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@889800 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 20:32:16 +00:00
Pinaki Poddar
43c55d0539
OPENJPA-1424: Fix. Do not lookup extraFieldData with another mapping's field
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@889799 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 20:28:57 +00:00
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
Pinaki Poddar
7d6ccb108c
OPENJPA-1050: Use generics for Filters
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819801 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 02:43:39 +00:00
Pinaki Poddar
baf800f3b0
OPENJPA-1050: Use generics for BrokerFactory
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819800 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 02:43:32 +00:00
Pinaki Poddar
9f24d10ecd
OPENJPA-1050: Use generics for DataCache
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819771 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 23:51:33 +00:00
Michael Dick
f1af41c44c
OPENJPA-1298:
...
Remove WriteBehindCallbackManager which 'shared' a single callback with multiple EMFs unintentionally
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817679 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 14:45:26 +00:00
Richard G. Curtis
4378977891
OPENJPA-250: Committing to trunk. Submitted by Patrick Linskey, Simon Droscher, and Rick Curtis.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817429 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 21:59:21 +00:00
Fay Wang
cf7f69bbd5
OPENJPA-1253: support non-default One-To-Many mappings
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816795 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 21:53:47 +00:00
Michael Dick
1c4a61758a
OPENJPA-1305:
...
Broker used by the WriteBehindCallback should be considered unmanaged.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816275 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 16:52:28 +00:00
Fay Wang
8c1e1a7ea5
OPENJPA-1253: support non-default uni-directional OneToMany using foreign key strategy, using JoinColumn annotation.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816085 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 07:49:13 +00:00
Fay Wang
72f2cb8516
OPENJPA-1253: allow JoinColumn in conjunction with OneToMany annotation
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@815988 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 22:13:26 +00:00
Fay Wang
1e77f6a3e1
OPENJPA-1286: default isAbstractMappingUniDirectional to false
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814037 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 21:24:12 +00:00
Fay Wang
eb5baa42a2
OPENJPA-1286: use Compatibility to check if the relationship defined in the MappedSuperclass must be uni-directional.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813605 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 21:50:08 +00:00
Kevin W. Sutter
dac8af35b4
OPENJPA-1260. Committing this change for Ravi Palacherla. Mike had previously reviewed the patch for correctness. Ravi changed the patch slightly and re-submitted. Based on a request from the mailing list, I reviewed Ravi's second patch and am committing the changes with a couple of minor modifications. I updated the comments slightly to make sentences. And, I moved the testcases to the "generationtype" package to be with similar testcases.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813597 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 21:35:57 +00:00
Fay Wang
d2cc5e0360
OPENJPA-1286: Relationships in mapped superclass must be unidirectional
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811212 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 03:21:32 +00:00
Fay Wang
701221576d
OPENJPA-1286: Relationships in mapped superclass must be unidirectional
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811211 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 03:20:19 +00:00
Catalina Wei
c880fdeb7f
OPENJPA-1287 Criteria query to generate 'optimize for 1 row' for DB2 if selection is an aggregate function
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811159 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 22:34:08 +00:00
Michael Dick
69cf52f68d
OPENJPA-1279:
...
Adding testcases and fixing cache exclusion logic in DataCacheStoreManager
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810197 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 19:48:09 +00:00
Michael Dick
fdcbdccae0
OPENJPA-1271:
...
Remove @Override annotations which caused compile errors with JDK5
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808997 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 19:29:08 +00:00
Michael Dick
991cdcae7d
OPENJPA-1271:
...
Enable CacheStoreMode and CacheRetrieveMode properties to be set for an EntityManager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808981 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 18:25:08 +00:00
Michael Dick
f06d862ec6
OPENJPA-386:
...
Handle abstract and non abstract MappedSuperClasses identically.
Submitted By: Jody Grassel
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808243 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 01:26:37 +00:00
Pinaki Poddar
f6ae418aa5
OPENJPA-1267: JDBC Escape Syntax for temporal type data in Criteria Query
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808235 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 00:26:00 +00:00
Fay Wang
9177e9369a
OPENJPA-1266: JDBC escape syntax for date, time, timestamp support
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808198 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 22:01:25 +00:00
Pinaki Poddar
f68c531a5b
OPENJPA-1265: Support edit of Criteria Query.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808158 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 18:54:30 +00:00
Fay Wang
e19c75a9c3
OPENJPA-1266: JDBC escape syntax for date, time, timestamp
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807851 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 23:22:59 +00:00
Michael Dick
8a66927c2d
OPENJPA-1264:
...
Add trailing newlines - checkstyle
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807681 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 15:56:24 +00:00
Michael Dick
964ab657ce
OPENJPA-1264:
...
Enable shared-cache-mode persistence.xml element.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807662 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 15:08:16 +00:00
Catalina Wei
388b18650f
OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807446 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 01:19:32 +00:00
Catalina Wei
917b49befe
OPENJPA-1261 JPQL query result shape for multi-selections including multi-select-new-constructor
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806993 13f79535-47bb-0310-9956-ffa450edef68
2009-08-23 17:47:06 +00:00
Michael Dick
bb7048d27c
OPENJPA-1200:
...
Discriminator column ignored for in select statement for OneToMany relationships.
Submitted By : Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806693 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 19:55:09 +00:00
Catalina Wei
2615a9b426
OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
...
Bulk update of embedded field is not allowed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806675 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 18:53:40 +00:00
Fay Wang
21d88cadc7
OPENJPA-1256: fix ClassCastExcepton when IdClass contains an ENUM type
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806011 13f79535-47bb-0310-9956-ffa450edef68
2009-08-20 00:03:30 +00:00
Pinaki Poddar
b11cdae338
Add error messages to FillStrategy
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805588 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 21:27:42 +00:00
Pinaki Poddar
4e6a98f634
OPENJPA-849,OPENJPA-1251: Property management, hidden values
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:27:30 +00:00
Pinaki Poddar
814341420d
OPENJPA-849, OPENJPA-1251: property management, hidden values
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805565 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:20:26 +00:00
Michael Dick
49e554ac6c
OPENJPA-1237:
...
Throw configuration exception for missing options when using WriteBehind.
Submitted by : Tim McConnell
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804539 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 23:25:35 +00:00
Catalina Wei
dc316323ba
OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804419 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 00:32:59 +00:00
Michael Dick
befee1a50b
Specify type of collection on AbstBrokerFact.getOpenBrokers()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804330 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:18 +00:00
Pinaki Poddar
a1e2f57eb9
Add a method to get the original expiration time from PCData.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804085 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 05:57:31 +00:00
Fay Wang
ccfbe6cd31
OPENJPA-1185: check in embeddable in subquery support on behalf of Catalina
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804011 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 20:01:38 +00:00
Fay Wang
a488a122cf
OPENJPA-1242: fix cascade delete for 1-1 relation in an embeddable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803763 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 03:08:55 +00:00
Pinaki Poddar
a445c1c4bd
OPENJPA-687: add statsics while datacache is queried with contains()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803661 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 18:43:48 +00:00
Pinaki Poddar
dc061e904f
OPENJPA-1225:
...
Refactor FillStrategy out of ResultShape enum to a separate interface.
Introduce CompoundSelections.MultiSelect
Use ObjectFactory for Tuple to save memory
Tune CriteriaExpressionBuilder to new result packing
Isolate ResultPacker (JPQL) from ResultShape (Criteria) completely
Implement getSelection() for JPA 2.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802984 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11 03:02:45 +00:00
Fay Wang
2b24b76a9c
OPENJPA-1143: keys(map) and values(map) support for Criteria API.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802929 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 21:32:52 +00:00
Michael Dick
3ec9136da7
OPENJPA-651:
...
Default setting for RuntimeUnenhancedClasses = unsupported.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802457 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 21:03:56 +00:00
Michael Dick
3b327b5fbb
OPENJPA-1232:
...
Call toNestedFields for Map Keys as well as Map values.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802211 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 21:31:45 +00:00
Fay Wang
a4a94f5331
OPENJPA-1226: fix merge entities with nested embeddables
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801052 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 02:56:41 +00:00
Pinaki Poddar
baaec8148b
OPENJPA-1225: Shape of Result for Criteria query. Draft.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801045 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 02:07:54 +00:00
Michael Dick
5232b72794
OPENJPA-1163:
...
Add configuration option that allows the elements in a persistent map to be treated as the owners of the relationship (ie updates to the hashmap can add elements without removing old ones).
Submitted By : Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800563 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 21:04:50 +00:00
Michael Dick
17da1c9a7e
OPENJPA-1089:
...
Adding EncryptionProvider configuration option.
Submitted By : Rick Curtis
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800504 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 19:25:44 +00:00
Pinaki Poddar
bde4708bac
OPENJPA-1180: Parameter processing for JPA 2.0. Query now distinguishes between bound and declared parameters. Holds all bound parameters in a single data structure instead of named/positional parameters in separate maps.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799848 13f79535-47bb-0310-9956-ffa450edef68
2009-08-01 12:03:09 +00:00
Michael Dick
655ec577e9
OPENJPA-1218:
...
Evict subclasses automatically when called from JPA facade.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799764 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 22:54:25 +00:00
Pinaki Poddar
385558d275
OPENJPA-1013: Clean up test cases. Make Path.get(String) generalized for Root/From. assert before String based navigation. Change ResultPacker. Make ParameterExpressionImpl.alias(String name) equivalent to setName().
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799520 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 05:17:19 +00:00
Pinaki Poddar
39cad98231
OPENJPA-1013: Add support for JPA 2.0 result processing. Modify kerenl's ResultPacking logic to asses impact for JPA 2.0"
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799466 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 22:42:04 +00:00
Catalina Wei
53805483fc
OPENJPA-1185 JPA2 fix thread-safe problems of subquery restructured code.
...
Committing patch provided by Fay Wang.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799134 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 23:53:46 +00:00
Donald Woods
16344b5b33
OPENJPA-1120 idEquals() broken in BigDecimalId and BigIntegerId. Patch contributed by Dieter Von Holten with additional updates from Albert Lee.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799132 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 23:53:18 +00:00
Michael Dick
e47be7dc3f
OPENJPA-1150:
...
Adding javadoc for WriteBehind interfaces.
modified: openjpa-kernel/src/main/java/org/apache/openjpa/writebehind/WriteBehindCache.java
modified: openjpa-kernel/src/main/java/org/apache/openjpa/writebehind/WriteBehindCacheKey.java
modified: openjpa-kernel/src/main/java/org/apache/openjpa/writebehind/WriteBehindCacheManager.java
modified: openjpa-kernel/src/main/java/org/apache/openjpa/writebehind/WriteBehindCallback.java
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798189 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 15:24:45 +00:00
Michael Dick
e7f9191695
Add braces for a few one line if statements.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797626 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 19:29:51 +00:00
Pinaki Poddar
7099c084fb
OPENJPA-1195: Datastore function for in general usage as well as JPA 2.0. CriteriaQuery Parameter indexing during registration.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797257 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 23:01:55 +00:00
Fay Wang
f74c5d7a69
OPENJPA-1185: commit subquery overhaul on behalf of Catalina
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@795934 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 17:49:36 +00:00
Jeremy Bauer
5cb32680a9
OPENJPA-1176 Add compatibility option to allow private persistent properties
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794774 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 18:46:22 +00:00
Donald Woods
8613683843
OPENJPA-1000 Consistent usage of serialVersionUID. Remove all serialVersionUID values that have been added since 1.2.1 as requested by Pinaki to keep the usage consistant (ie. very little use of serialVersionUID in the existing code.)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792312 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 20:48:46 +00:00
Michael Dick
08bafa5ef5
OPENJPA-1164. Making sleepTime configurable for SimpleWriteBehindCallback.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792226 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 16:47:34 +00:00
Pinaki Poddar
dcaa13461e
OPENJPA-703: Beef up strong/weak exclusion of cache entries. Narrow down reason for exclusion.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791971 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 20:29:34 +00:00
Jeremy Bauer
5283bcd77d
OPENJPA-1082 Added support for configurable bean validation groups
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791678 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 02:35:08 +00:00
Michael Dick
8597b330e5
OPENJPA-1150. Adding support for simple write-behind cache scenarios.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791628 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06 22:09:32 +00:00
Jeremy Bauer
9ee5383721
OPENJPA-1155 Committing code contributed by Dianne Richards. This update ensures that all entities, especially those loaded during detachment get cascaded during detach.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791568 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06 19:06:19 +00:00
Jeremy Bauer
c24bc1d75c
OPENJPA-1068 Modified exception translator to translate wrapped validation exceptions. EM operations now throw correct validation exceptions.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790700 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 18:21:26 +00:00
Pinaki Poddar
c2afd1cefd
OPENJPA-703: Expand type of queries that can be cached especially with various projection terms. Refactor testing of PreparedQueryCache.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790676 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 16:57:17 +00:00
Michael Dick
80dbd79952
OPENJPA-1151 committing patch from Jody Grassel.
...
modified: openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790003 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 23:53:31 +00:00
Michael Dick
03d9e24bc6
OPENJPA-1061 merging patch provided by Jody Grassel to trunk
...
modified: openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
modified: openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@789519 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 01:05:16 +00:00
Milosz Tylenda
717a3bb508
OPENJPA-1146: Delete RuntimeUnenhancedClassses and link references to RuntimeUnenhancedClasses
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788944 13f79535-47bb-0310-9956-ffa450edef68
2009-06-27 09:53:46 +00:00
Donald Woods
fa64591c41
OPENJPA-1106 cleanup some javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788836 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 19:48:29 +00:00
Donald Woods
e72c186ef1
OPENJPA-1143 fix 2 build errors only flagged in Eclipse (was using Galileo and Sun JDK 6)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788381 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 15:07:34 +00:00
Michael Dick
0e055fb013
OPENJPA-1119 committing patch from Rick Curtis.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@787359 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 19:16:19 +00:00
Donald Woods
6c1cc88175
OPENJPA-1117 Missing AgentClass attribute in openjpa-all-xxx.jar manifest.mf. Also included some jvm arguments from OPENJPA-1119 which were required to fix some OOM PermGen space problems with 64bit IBM 6 SDK on Windows.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@786555 13f79535-47bb-0310-9956-ffa450edef68
2009-06-19 15:43:46 +00:00
Michael Dick
453a6a96fa
Move delegating store manager creation to a separate method
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@786340 13f79535-47bb-0310-9956-ffa450edef68
2009-06-19 00:11:04 +00:00
Donald Woods
46ea5bf7a6
remove tabs
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@786178 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18 17:36:26 +00:00
Donald Woods
bc9654cfc5
OPENJPA-1111 Validation mode of callback should cause a PersistenceException when no provider is available. Part 2 - updated WrapperedException to properly pass on the exception, updated ValidationException to allow for setting the fatal flag, and updated the location of the localizer messages for ValidationUtils.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785861 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18 00:09:42 +00:00
Donald Woods
472cf99ab4
OPENJPA-1000 Consistent usage of serialVersionUID - remove added sVUID added in 2.0.0
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785778 13f79535-47bb-0310-9956-ffa450edef68
2009-06-17 20:22:20 +00:00
Donald Woods
0d8b1dc074
OPENJPA-1111 Validation mode of callback should cause a PersistenceException when no provider is available. Also some config rework as suggested by Pinaki in reviewing OPENJPA-1114. This is Part 1, as the thrown PersistenceException is not marked as Fatal and contains a null description, but does have the stack.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785366 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 20:11:45 +00:00
Jeremy Bauer
6ee7af451c
OPENJPA-926 Do not validate access hierarchy when mapped superclass has no persistent attributes
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783968 13f79535-47bb-0310-9956-ffa450edef68
2009-06-12 02:51:49 +00:00
Michael Dick
d7a6e1a08b
OPENJPA-1125 committing patch from Rick Curtis. Preventing misleading enhancement message.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783376 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 14:45:32 +00:00
Pinaki Poddar
b961b8baa2
OPENJPA-1013: Aliasing for query nodes, single attribute join support, reorganization of test harness
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783166 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 00:41:35 +00:00
Albert Lee
bace5f5697
OPENJPA-1113 - The 2nd level Reflection class cached object (Class -> (String -> Method)) is a Method object, which has a back reference back to the owning Class. The IBM JDK seems to be able to garbage-collect these caches using WeakReferenceHashMap. By forcing the value of the nested HashMap to be WeakReference, using the ConcurrentReferenceHashMap class, the Sun and IBM JDK 5/6 are able to release the cache content, if not needed. With these changes, the trunk maven build time has shortened by 5-10%.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782064 13f79535-47bb-0310-9956-ffa450edef68
2009-06-05 16:58:53 +00:00
Albert Lee
4d5c43ad78
OPENJPA-1113 - Revert changes back to previous levels: Reflection:743396 & AbstractBrokerFactory 768588. I have verified that the latest changes associated to this issue did not caused any memory leak by observing/dumping the static cache sizes in the Reflection class. The emf.close() method cleared out the cache, i.e. HashMap.size() == 0. From looking at the memory usage of the JVM that invoked the test in persistence-jdbc module, the memory usage continues to grow even without the changes committed by this issue. Therefore there is some memory leak somewhere either in the test case or the provider code. The OOM condition only occurs with Sun JDK, IBM JDK works ok.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781473 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 16:58:14 +00:00
Donald Woods
549115f77c
fix missing license header problems found by rat plugin during EA2 creation
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781462 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 16:26:16 +00:00
Albert Lee
751a60b393
OPENJPA-1113 - Close off memory leak.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781221 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 00:20:03 +00:00
Albert Lee
e32f6f1337
OPENJPA-1113 - Cache Reflection artifacts for performance improvement.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780881 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 23:29:51 +00:00
Donald Woods
97caf21bb7
OPENJPA-1068 remove debugging info left behind in last commit. Jeremy, thanks for the review and for catching this.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780729 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 17:13:08 +00:00
Donald Woods
d4c227ef00
OPENJPA-1068 Use validation mode to determine if we should setup a ValidatingLifecycleEventManager or not. Based on patch from Jeremy with one config scenario still to be addressed in OPENJPA-1111.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780706 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 16:26:43 +00:00
Fay Wang
54744110eb
OPENJPA-1013: make setImplicitTypes static so that it can be called by critieria query
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780172 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30 04:22:22 +00:00
Michael Dick
2b942805f2
OPENJPA-952. Committing patch from Rick Curtis
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780086 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 20:06:29 +00:00
Donald Woods
85bc7a5e80
OPENJPA-1102 Support application/container provided ValidatorFactory
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779554 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 10:43:55 +00:00
Catalina Wei
87b66ae764
OPENJPA-1098 JPA2 Query support for subselect_identification_variable
...
no functional changes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779447 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 06:27:31 +00:00
Michael Dick
c1b842d492
OPENJPA-1026. Committing patch from B.J. Reed and enabling newline check.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779416 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 02:50:00 +00:00
Donald Woods
130d1d4bd9
OPENJPA-880 Use maven-remote-resources-plugin to generate required legal files. Also removes dependency on openjpa-project for maven eclipse plugin.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779191 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 14:43:00 +00:00
Catalina Wei
c20a2b254f
OPENJPA-1098 JPA2 Query support for subselect_identification_variable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778990 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 04:22:37 +00:00
Jeremy Bauer
a4a9dc1787
OPENJPA-926 Localize exception message
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778873 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 20:24:43 +00:00
Jeremy Bauer
5b53615609
OPENJPA-926 Modify XML-based explicit access tests to use build-time enhancement
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778831 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 18:29:29 +00:00
Catalina Wei
b1e8eec3ce
OPENJPA-1098 JPA2 Query support for subselect_identification_variable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778540 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 00:05:36 +00:00
Michael Dick
291e27eba9
OPENJPA-1015. Committing patch provided by BJ Reed. Additional testcases have been added which do not conform - I've updated some of them but some still exist so validation is not enabled by default
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777135 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 14:39:31 +00:00
Pinaki Poddar
70f55bdee8
OPENJPA-1013: Joins, MetaModel validation, Array type
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776951 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 05:05:39 +00:00
Donald Woods
5fc3725de5
OPENJPA-1068 has listeners should be logical ORs instead of ANDs
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776374 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 16:10:06 +00:00
Catalina Wei
2ce5299a73
OPENJPA-1094 JPA2 Query support KEY to appear in subquery
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776117 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 22:23:04 +00:00
Jeremy Bauer
e5e4cc122a
OPENJPA-1068 Rev 1 of lifecycle validation
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776009 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 17:05:48 +00:00
Fay Wang
76764564b1
OPENJPA-1013: parameter support for Criteria Query
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775997 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 15:56:35 +00:00
Donald Woods
cb115bcd16
OPENJPA-1077 Validation-mode element support added to persistence.xml and to createEMF properties Map
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774930 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 21:14:45 +00:00
Catalina Wei
d7ddfb1055
OPENJPA-1064 JPA2 Query no support for embeddable of element collection in predicate and subquery
...
JPA2 spec (section 4.12) does not support comparisons over embeddable class.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774928 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 21:08:27 +00:00
Jeremy Bauer
1f37b7725c
OPENJPA-926 Tests and code updates for explicit access types
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773704 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 21:59:15 +00:00
Pinaki Poddar
dc39b6320f
OPENJPA-1050: Use generic types where applicable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773180 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 08:27:44 +00:00
Pinaki Poddar
23bd8aa147
OPENJPA-1050: Use generic types where applicable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773179 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 08:17:27 +00:00
Pinaki Poddar
9a8246799c
OPENJPA-1010: MetaDataRespository knows about meta-class. The naming and support for meta-class added to MetaDataFactory. Implemented in PersistenceMetaDataFactory. AnnotationProcessor6 aligned with this naming policy interface.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772820 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 23:57:04 +00:00
Fay Wang
75dfd10c59
OPENJPA-1069: orderBy on ElementCollection of basic types
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772528 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 07:16:31 +00:00
Catalina Wei
ed82fda48c
OPENJPA-1064 JPA2 Query add support for embeddable of element collection in predicate and subquery
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772015 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 00:03:09 +00:00
Pinaki Poddar
0392538775
OPENJPA-1013,OPENJPA-1014: Type-strict Criteria API (skeletal) implementation as per JPA 2.0.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@771948 13f79535-47bb-0310-9956-ffa450edef68
2009-05-05 18:03:31 +00:00
Michael Dick
6a36d55398
OPENJPA-1045 remove system.out.format eyecatcher
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@771348 13f79535-47bb-0310-9956-ffa450edef68
2009-05-04 16:26:44 +00:00
Michael Dick
2c2e78149d
OPENJPA-1045. L2 cache included / excluded types may be specified via configuration properties
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@770729 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 15:47:33 +00:00
Pinaki Poddar
733c1ea7de
OPENJPA-1050: Use parameterized type whenever applicable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@770528 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 04:02:14 +00:00
Pinaki Poddar
861db8ddd0
OPENJPA-1049: Register type alias for MappedSuperclass.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@770516 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 02:22:35 +00:00
Fay Wang
1677b481b2
OPENJPA-1053: fix update by setting an embeddable which contains a cascade delete relation with another entity.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769879 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 19:08:11 +00:00
Pinaki Poddar
9d52998c1e
OPENJPA-926: JPA 2.0 Access processing by XML descriptors
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769308 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 09:20:06 +00:00
Pinaki Poddar
29a5f7acd2
OPENJPA-1050: Use parameterized type whenever applicable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768588 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 19:29:07 +00:00
Pinaki Poddar
a868ae3435
OPENJPA-926,OPENJPA-1050: handling corner cases of access type. moving uniformaly to access code. adding type parameters.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768498 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 09:11:11 +00:00
Pinaki Poddar
cf8647198a
OPENJPA-1050: Use parametrized types wherever applicable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768452 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 02:57:40 +00:00
Pinaki Poddar
0ffbce338f
OPENJPA-926: entity without any property can have unknown access type.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768428 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 22:24:45 +00:00