Commit Graph

141 Commits

Author SHA1 Message Date
A. Abram White dc09b61954 Fixes from Kodo's 3.4 branch.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453685 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 17:13:21 +00:00
A. Abram White c0c4c3c738 Fixes relating to multiple same-typed embedded fields loading eager relations,
and deep vertical inheritance hierarchies where the base class's primary key 
is auto-assigned on insert.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453449 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 01:04:34 +00:00
A. Abram White 69d8dd3da9 Enable caching of embedded instances by datacache. Fix bugs in
DataCachePCDataGenerator.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453066 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 23:43:51 +00:00
A. Abram White d0bca27ecd When there is only one callback exception, use its error message in top-level
exception.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453044 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 21:52:17 +00:00
A. Abram White 5337ce10d0 Possible fix for OPENJPA-13 JIRA issue. Also fix possible NPE on delayed close
on transaction completion in managed environment.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453016 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 20:46:25 +00:00
A. Abram White 8785be46e7 Handle exceptions from transaction listeners appropriately. Allow user to
override default CallbackMode for both lifecycle and transaction listeners.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452981 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 19:12:34 +00:00
Marc Prud'hommeaux 88acae75c1 Removed special logic for forcing an inner join for projection clauses, since that logic is duplicated elsewhere.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452684 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 00:33:46 +00:00
A. Abram White c1a857c915 Move the Perf class that supports some of our concurrency utils on older JVMs
to lib, where it belongs.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452683 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 00:26:45 +00:00
A. Abram White 174ae93d41 MetaDataFactory.newInstance method no longer needed. Continue work on docs
(note: docs may temporarily be in invalid state).



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452592 13f79535-47bb-0310-9956-ffa450edef68
2006-10-03 18:36:45 +00:00
Marc Prud'hommeaux f18ea3dd33 Set the data cache schedule thread to be a daemon thread.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452289 13f79535-47bb-0310-9956-ffa450edef68
2006-10-03 01:20:16 +00:00
A. Abram White bdae6535ec Miscellaneous cleanup and fixes. Some documentation review.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452243 13f79535-47bb-0310-9956-ffa450edef68
2006-10-02 22:22:18 +00:00
Patrick Linskey bc9422ea5d improved error message
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451707 13f79535-47bb-0310-9956-ffa450edef68
2006-10-01 01:28:25 +00:00
Stephen Kim 9fb0a9a6f5 fix deletion of PNewProvisional
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451691 13f79535-47bb-0310-9956-ffa450edef68
2006-09-30 22:34:55 +00:00
Stephen Kim 923eb32d31 fixed duplicate preFlush and bug wrt persist vs nonprovisional in
singlefieldmanager


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451543 13f79535-47bb-0310-9956-ffa450edef68
2006-09-30 05:29:10 +00:00
Marc Prud'hommeaux 5eb55ee87a Changed REVISION_NUMBER to be a String, since Subversion revisions can be a string (e.g., "420667:451468M")
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451470 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 22:07:21 +00:00
Stephen Kim f104321da8 avoid duplicate event call
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451011 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 20:18:07 +00:00
Stephen Kim d833950424 committed wrong version of pNewProviisonal handling
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450937 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 17:47:23 +00:00
Stephen Kim bd340fbe15 PNewProvisional again. I think I covered the object graph reflush issue
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450916 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 16:34:05 +00:00
Pinaki Poddar 98d1da1fba Moved Entity Listener constraints from MetaDataDefaults in kernel to JPA facade PersistenceMetaDataDefaults
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450731 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 07:24:11 +00:00
Marc Prud'hommeaux 3620b80ce4 Null checks.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450619 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 22:50:08 +00:00
Stephen Kim 7522db86fd boot provisional changes for now. I think I'm missing a huge hole with hashing
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450350 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 06:46:15 +00:00
Stephen Kim c6537ccba6 PNewProvisional
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450321 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 05:24:44 +00:00
A. Abram White 46736c6018 Fix configuration warnings for misspelled property names.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450173 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 20:11:33 +00:00
Pinaki Poddar 5b9c773c81 Correcting JavaDoc formatting error.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450164 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 19:35:41 +00:00
Pinaki Poddar 9a52726ea2 Applying the constraints that the entity listner class
a) must have a no-arg constructor 
b) multiple methods of the same class must not register for the same event 
(JPA Spec Section 3.5)  



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450158 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 19:23:48 +00:00
A. Abram White 62bc6c997c Change default MaxFetchDepth to -1 (unlimited). Also move the use of multiple
configuration prefixes to ProductDerivations for simple static access.  Modify
some cases of looking for "openjpa." prefixes to properties to properly look 
for all configured prefixes instead.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450114 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 16:54:30 +00:00
A. Abram White ed0d6b1fec Version number fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449048 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 18:51:23 +00:00
A. Abram White a9089d2688 PDeleted version check causing problems.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449044 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 18:37:11 +00:00
A. Abram White cdcfea47d4 Review/cleanup of product derivation work.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448025 13f79535-47bb-0310-9956-ffa450edef68
2006-09-20 01:29:55 +00:00
Pinaki Poddar 2c31d9c6df 1. Refactoring ConfigurationProvider/ProductDerivation subsystem.
2. Extensibility of OpenJPA via ProductDerivation

Primary modifications are
a) The configuration information resources are located/parsed/loaded via dynamically discovered ProductDerivation services
(instead of ConfigurationProviders). ConfigurationProvider is not enlisted as a service any more.
b) Tools are modified to use ProductDerivations instead of Configurations 
c) ProductDerivation has moved to lib from kernel.
d) ProductDerivation types that are STORE specific are no more defined in lib version.
OpenJPAProductDerivation in kernel package defines them. The type constants have holes. 
e) One test is modified
f) pom.xml is modified as ProductDerivation has moved to lib from kernel 

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447664 13f79535-47bb-0310-9956-ffa450edef68
2006-09-19 00:50:57 +00:00
Stephen Kim 52e2d38ed9 forgot localization
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446909 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 18:25:43 +00:00
Stephen Kim 05865aef89 Remove warning from enhancing impl generated classes and optimize
class / interface interaction


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446904 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 17:39:57 +00:00
Marc Prud'hommeaux 944f8ad22c Non-optimistic transactions will no longer perform a version check when committing dirty objects, unless the NonOptimisticVersionCheck compatibility property is set to true. This allows dirty instances enlisted in a non-optimistic transaction to be allowed to overwrite conflicting versions in the database.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446799 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 00:44:55 +00:00
A. Abram White a7cfbfc4c9 Fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446787 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 23:49:21 +00:00
Marc Prud'hommeaux 53dbcdf35c Add a better error message when casting an instance to PersistenceCapable fails due to the PersistenceCapable interface being loaded by two separate ClassLoaders
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446769 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 22:12:05 +00:00
Marc Prud'hommeaux b2e0133907 Fixed error in last commit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443537 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 00:51:18 +00:00
Marc Prud'hommeaux c6c683e8ac Allow callback methods to accept the Entity subclass of the type they are listening on, rather than forcing them to all take an argument of type java.lang.Object (section 3.5.1)
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443509 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 23:06:11 +00:00
A. Abram White 72f7b6b963 Query fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443170 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 00:05:16 +00:00
A. Abram White 913e54c93c No need to beginOperation (and especially sync with trans) in
internal isTransactionEnding method.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443164 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 23:23:22 +00:00
Stephen Kim cfcca49521 fix for re-proxying of hashed types during commit / rollback
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443153 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 22:45:21 +00:00
Kevin W. Sutter 9650a1a20b Minor updates to comments and doc... While doing the removal of the LockGroup stuff, I came across an entry for
contacting support@solarmetric.com for some customization feature.  While cleaning that up, I also cleaned up any 
other references to @solarmetric.com and @bea.com.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443123 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 21:05:42 +00:00
A. Abram White a9eaf4683b Formatting.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443073 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 18:57:13 +00:00
Stephen Kim 8a9c647907 load registered class metadata when getting implementors
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443016 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 16:31:50 +00:00
Marc Prud'hommeaux d78bcae002 Only make an instance nontransactional if it is not in the TCleanState, which should not transitional to nontransactional upon detach. Only make an instance nontransactional if it is not in the TCleanState, which should not transitional to nontransactional upon detach.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442774 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 00:44:14 +00:00
A. Abram White 832d913520 Delete child object(s) before parent when cascading delete. Also fix case where
an interface field uses targetEntity to declare itself as a concrete entity 
relation, and add test case for fix.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442718 13f79535-47bb-0310-9956-ffa450edef68
2006-09-12 21:39:01 +00:00
A. Abram White 6ac482c68f Fix erroneous change I made yesterday.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442691 13f79535-47bb-0310-9956-ffa450edef68
2006-09-12 20:06:29 +00:00
Stephen Kim 2dfe77f2ca Record interface superclasses
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442494 13f79535-47bb-0310-9956-ffa450edef68
2006-09-12 07:06:25 +00:00
Stephen Kim 1defd23037 Supports for interface query alias metadata
as well as refactoring persistence-aware metadata into non-persistent metadata
to support non-managed interfaces


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442363 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 21:56:55 +00:00
A. Abram White da1961910b Change to allow fields to use per-class sequences.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442269 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 17:28:44 +00:00
Marc Prud'hommeaux 25e80a994e OPENJPA-42 Check for the existence of superclass metadata in getSuperclassField so we throw a better exception than an NPE if it doesn't exist.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442030 13f79535-47bb-0310-9956-ffa450edef68
2006-09-10 23:24:02 +00:00