Commit Graph

4543 Commits

Author SHA1 Message Date
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 7a74bedd70 fix JDBC Abs query function's return type.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448757 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 00:52:08 +00:00
A. Abram White d090d717f4 Fix sequence bug I introduced with last sequence synchronization refactoring.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448708 13f79535-47bb-0310-9956-ffa450edef68
2006-09-21 22:01:57 +00:00
A. Abram White 68572a9197 Die in ProductDerivations.load() if given resource/file can't be parsed by any
ProductDerivations in the system.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448625 13f79535-47bb-0310-9956-ffa450edef68
2006-09-21 18:28:06 +00:00
Patrick Linskey d85ea93d3a oops, fixed bum compilation failure.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448430 13f79535-47bb-0310-9956-ffa450edef68
2006-09-21 02:06:05 +00:00
Patrick Linskey 4efc384cbd added some extension points for sql pluggability
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448405 13f79535-47bb-0310-9956-ffa450edef68
2006-09-20 23:42:41 +00:00
A. Abram White 480a42df4a Perform JDBC sequence ops outside of synchronization blocks in case of JDBC
hangs.  Also should improve concurrency.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448298 13f79535-47bb-0310-9956-ffa450edef68
2006-09-20 18:40:28 +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
Marc Prud'hommeaux 7740c7842c The recent upgrade of maven-jar-plugin to 2.1 caused the Implementation-Version tag to be excluded from the manifest, which we rely on to detect the current version. Added "addDefaultSpecificationEntries" and "addDefaultImplementationEntries" to pluginManagement to fix this.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447655 13f79535-47bb-0310-9956-ffa450edef68
2006-09-19 00:22:07 +00:00
Marc Prud'hommeaux d47e1d1f18 Added "INDEX" to the reserved word set.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447569 13f79535-47bb-0310-9956-ffa450edef68
2006-09-18 21:25:44 +00:00
Marc Prud'hommeaux b7aa94749e Fixed default type for binaryTypeName, varbinaryTypeName, and longVarbinaryTypeName to be "BLOB" (rather than "VARBINARY", which does not exist as a type for Oracle).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447558 13f79535-47bb-0310-9956-ffa450edef68
2006-09-18 21:08:21 +00:00
Marc Prud'hommeaux 9ba388d243 Use the environment class loader as the metadata loader only if it is not null.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447112 13f79535-47bb-0310-9956-ffa450edef68
2006-09-17 18:52:37 +00:00
Marc Prud'hommeaux 9b8351c60e Fixed location of docbook stylesheet
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446912 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 18:31: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
Marc Prud'hommeaux 9789c93caf Reorganized documentation do that it will be inlcuded in the openjpa-*.zip bundle when running 'mvn package -Pjavadoc-profile,docbook-profile'
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446907 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 18:17:47 +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 d746a3fd7c Fixed class names of references to tools
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446900 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 17:22:29 +00:00
Marc Prud'hommeaux 0c34969609 Download and cache the stylesheet file to reduce network chatter when building docs; fixed the image scaling so graphs are not shrunken in the resulting HTML document
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446896 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 16:53:45 +00:00
Marc Prud'hommeaux 02c9ce3ca7 Fixed possibility of a null method in getMethodDescriptors.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446802 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 01:25:59 +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 65e0a48a81 Workaround for HSQL bug in treating Long.MAX_VALUE as a double.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446720 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 20:35:20 +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 20e0762e43 Fixed getMethodDescriptors to not try to create a MethodDescriptor for a non-existant method (which would cause an NPE).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443524 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 23:47:13 +00:00
A. Abram White 47edcb8edc Don't use a subselect for non-distinct projections of DISTINCT_AUTO queries
with to-many joins in their filter if the projections are all for variable 
paths.  (As opposed to candidate path projections, where the subselect is 
necessary to filter out duplicates caused by relational joins).



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443519 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 23:41:30 +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 7846adbf3f Unused.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443496 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 22:10:45 +00:00
A. Abram White a5d552f940 Allow null discriminator values when adding class conditions on outer joins.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443447 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 19:36:09 +00:00
Marc Prud'hommeaux fcd072a2c5 Fixed bug where NamedNativeQuery/NamedNativeQueries was not being examined when looking up named queries, which could result in them not being found if the metadata has not yet been parsed completely
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443432 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 18:21:19 +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 c863a7a489 target-entity parse fix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443114 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 20:35:15 +00:00
Kevin W. Sutter 7bff3b4373 Removed references to LockGroups from the messages, documents, and code since these are not provided as
part of the OpenJPA code drop.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443113 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 20:35:08 +00:00
Marc Prud'hommeaux 868cc7bc4e Moved nulling of sequence name to after the check and configuration of the plugin, since it was preventing using a custom sequence plugin from working when specified in the sequence name.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443104 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 20:03:44 +00:00
Marc Prud'hommeaux 30345610fa Moved nulling of sequence name to after the check and configuration of the plugin, since it was preventing using a custom sequence plugin from working when specified in the sequence name.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443103 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 20:03:39 +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
Kevin W. Sutter 912c1262d6 Removed unused message concerning the number of pooled connections allowed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443019 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 16:39:45 +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
A. Abram White d1e7a817d2 Fix failure to close some empty result sets.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442643 13f79535-47bb-0310-9956-ffa450edef68
2006-09-12 16:41:09 +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
A. Abram White 1e95734015 OPENJPA-39 test case. Also query fixes and fix to possible data corruption
issue (yikes!).



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442388 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 23:54:01 +00:00
Marc Prud'hommeaux f56a7555a7 Don't bother using a subselect in bulk UPDATE or DELETE clauses if there is no where condition, since it does the exact same think as an unqulaified bulk operation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442385 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 23:17:27 +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