Commit Graph

119 Commits

Author SHA1 Message Date
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
A. Abram White 37aa91d2af Simplify determination of identity type in metadata, also correcting problems
with determining the identity type of hierarchies involving @MappedSuperclasses.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@441679 13f79535-47bb-0310-9956-ffa450edef68
2006-09-08 22:45:39 +00:00
A. Abram White 7e30623c7b Refactor JDBC query expression tree to allow greater concurrency and to handle
parameters in result clauses of projections.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@441158 13f79535-47bb-0310-9956-ffa450edef68
2006-09-07 17:51:05 +00:00
Marc Prud'hommeaux 56d5f6469e OPENJPA-40 Fall back to using the ConfigurationProvider's ClassLoader in the even of a loader mismatch.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@440882 13f79535-47bb-0310-9956-ffa450edef68
2006-09-06 21:42:31 +00:00
Pinaki Poddar 253407b69c Refatoring user facing classes (FetchPlan, Generator, Extent, StoreCache) into interfaces.
Adding hooks for extended EntityManagerFactory and ConfigurationProvider.


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@440714 13f79535-47bb-0310-9956-ffa450edef68
2006-09-06 13:52:35 +00:00
A. Abram White c1a146714e InheritanceComparator has been changed to public: add @nojavadoc to prevent
inclusion of this internal component in user javadoc.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@440400 13f79535-47bb-0310-9956-ffa450edef68
2006-09-05 16:59:11 +00:00
Stephen Kim 5240ea8612 remove executable flag on file
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@440254 13f79535-47bb-0310-9956-ffa450edef68
2006-09-05 04:34:44 +00:00
Stephen Kim 2b66092a80 fix inheritance issue again with interfaces
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439554 13f79535-47bb-0310-9956-ffa450edef68
2006-09-02 07:27:13 +00:00
Stephen Kim fc9b67f556 changed ordering to avoid super / subclass clashing
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439550 13f79535-47bb-0310-9956-ffa450edef68
2006-09-02 06:36:19 +00:00
Stephen Kim 4f4b1b29fe bug in ordering
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439548 13f79535-47bb-0310-9956-ffa450edef68
2006-09-02 06:17:06 +00:00
Stephen Kim fe6352fca1 whoops. forgot interface impl generator
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439412 13f79535-47bb-0310-9956-ffa450edef68
2006-09-01 18:18:03 +00:00
Stephen Kim 423b0a418a Support for managed interfaces
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439383 13f79535-47bb-0310-9956-ffa450edef68
2006-09-01 17:16:50 +00:00
Marc Prud'hommeaux c39b7141ce Don't allow conversion from number to String if the strict flag is set to true.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438746 13f79535-47bb-0310-9956-ffa450edef68
2006-08-31 01:51:30 +00:00
Marc Prud'hommeaux 582c83b29b OPENJPA-15 Updated grammer to fix some inconsistencies with the spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438573 13f79535-47bb-0310-9956-ffa450edef68
2006-08-30 18:16:40 +00:00
Patrick Linskey 01735b1234 changed @since tags to disambiguate the Kodo information with future releases of OpenJPA by adding a 0. to the beginning of each.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438566 13f79535-47bb-0310-9956-ffa450edef68
2006-08-30 17:53:55 +00:00
A. Abram White 163cc2a22c Framework for allowing ranges in query strings to be specified as parameters
(not needed for JPQL, but for others).  Also consolidated some internal query
framework APIs.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438338 13f79535-47bb-0310-9956-ffa450edef68
2006-08-30 03:43:16 +00:00
Marc Prud'hommeaux dc1f0bf204 OPENJPA-30 Changed version to 0.9.0-incubating-SNAPSHOT in accordance with Apache incubator guidelines
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@437209 13f79535-47bb-0310-9956-ffa450edef68
2006-08-26 18:59:34 +00:00
Patrick Linskey 96e534a165 moved POM to use ant task instead of java invocation; changed service invocations to use the classloader of the class being looked up to avoid issues with cyclic-static blocks; improved debug info
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436945 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 21:00:19 +00:00
Marc Prud'hommeaux caffb77405 Prefixed pom names with 'OpenJPA' to make them more friendly when their public names are displayed
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436911 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 19:16:23 +00:00
Patrick Linskey dcb47f0fe4 OPENJPA-14. Use the class's classloader in environments when service lookups should be looking in the OpenJPA distribution. This imposes the restriction that OpenJPA will only find services in the same classloader as the OpenJPA jars themselves, which is a much better restriction than requiring that the classes be in the thread's context classloader.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436694 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 07:33:50 +00:00
A. Abram White fe71475a59 Formatted our documentation XML files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434517 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 20:41:12 +00:00
Marc Prud'hommeaux bad3cba9b6 Changed version to be a SNAPSHOT so we can use the snapshotRepository
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434196 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 21:37:05 +00:00
Marc Prud'hommeaux 4436a3d90f Escaped the "{user.home}" string with a "'" so that MessageFormat does not try to interpret it as a token (and then fail).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433855 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 03:10:33 +00:00