Commit Graph

110 Commits

Author SHA1 Message Date
Patrick Linskey a493e790b7 Removed some dead code and unused imports.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@469315 13f79535-47bb-0310-9956-ffa450edef68
2006-10-30 23:32:19 +00:00
Kevin W. Sutter 753468d8a1 Resolving OPENJPA-67. The sql statement for selecting the next value in a sequence was not correct in the DB2 Dictionary.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@468440 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 16:16:59 +00:00
Marc Prud'hommeaux e2f38567a1 Upgraded to version '0.9.6-incubating-SNAPSHOT'
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464753 13f79535-47bb-0310-9956-ffa450edef68
2006-10-17 00:05:01 +00:00
Marc Prud'hommeaux fb00d685bd Upgraded to version '0.9.5-incubating'
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464711 13f79535-47bb-0310-9956-ffa450edef68
2006-10-16 23:00:34 +00:00
A. Abram White 907647550c git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464586 13f79535-47bb-0310-9956-ffa450edef68 2006-10-16 17:52:44 +00:00
A. Abram White c8b5b2746e Validate product derivations before caching them so we don't end up with runtime
errors when clients use JPA without jdo.jar or JDO without jpa.jar.  Give a 
more succinct warning when some product derivations are uninstantiable, with
more detailed information available via the ProductDerivations class's main().



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@463829 13f79535-47bb-0310-9956-ffa450edef68
2006-10-13 21:07:17 +00:00
A. Abram White 72594b2ac8 Remove some bad vert inheritance logic.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462846 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 16:43:17 +00:00
A. Abram White 6937856e2b Optimize queries of the form "select e from ... where e.rel.id = :x" to not join
across "rel" for std fk->pk joins. 



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462646 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 00:16:53 +00:00
A. Abram White f27898f280 Take advantage StringUtils where appropriate.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462617 13f79535-47bb-0310-9956-ffa450edef68
2006-10-10 22:39:15 +00:00
A. Abram White 08d69d15a7 Vertical inheritance with eager fetching fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462560 13f79535-47bb-0310-9956-ffa450edef68
2006-10-10 20:56:32 +00:00
Marc Prud'hommeaux 0c58bedbb6 Updated version to be openjpa-0.9.5-incubating-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454516 13f79535-47bb-0310-9956-ffa450edef68
2006-10-09 21:16:48 +00:00
Marc Prud'hommeaux 2fbc438887 Updated to final 0.9.0-incubating release number
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454452 13f79535-47bb-0310-9956-ffa450edef68
2006-10-09 18:40:10 +00:00
A. Abram White dcf691a727 Get rid of warning for product derivations that use an unsupported class
version.  Minor API changes.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454072 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 04:03:06 +00:00
Patrick Linskey 28910a7374 Changed OpenJPAProductDerivation to have a proper lifecycle callback for BrokerFactoryValue initialization; added supporting infrastructure as needed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454064 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 02:05:49 +00:00
A. Abram White 433475f6ad Merge fixes from Kodo 4.0 line.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453796 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 22:31:28 +00:00
Marc Prud'hommeaux 3ffad89624 Added warning about Oracle's ArrayIndexOutOfBoundsException JDBC driver bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453720 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 18:10:08 +00:00
Marc Prud'hommeaux 223b81db2b Added warning about Oracle's ArrayIndexOutOfBoundsException JDBC driver bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453717 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 18:06:17 +00:00
Marc Prud'hommeaux b25dfe66f4 Added supportsTimestampNanos to allow people to work around an ArrayIndexOutOfBoundsException that occurs when using multiple timestamp columns with version 9.2+ of the Oracle JDBC driver and version less than 9.2 of the Oracle server.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453715 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 18:03:50 +00:00
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 1dbb7a9044 Tests and fixes for entities with multiple same-typed embedded entities, which
themselves have relations to other entities.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453321 13f79535-47bb-0310-9956-ffa450edef68
2006-10-05 19:13:26 +00:00
A. Abram White 361a77c451 Fix bug that could prevent user-assigned value from being inserted into a column
with a database default value.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453030 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 21:16:06 +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 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
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
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
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
Marc Prud'hommeaux 9443b9f9bc Un-did last command, since INDEX already existed in the reservedWordSet.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450214 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 21:23:00 +00:00
Marc Prud'hommeaux a55664495e Added "INDEX" to the reserved word list.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450200 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 20:57:20 +00:00
A. Abram White 26a3499fe5 Leave escape character in string if we use db wildchars as matches wildcards.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450144 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 18:53:14 +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
Marc Prud'hommeaux d3956a7d98 Override "ON DELETE SET NULL" foreign keys if the foreign column is "NOT NULL".
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449532 13f79535-47bb-0310-9956-ffa450edef68
2006-09-25 00:19:36 +00:00
Marc Prud'hommeaux a8c1fad16c Fixed varbinaryTypeName and longVarbinaryTypeName to be "BLOB" (they were defaulting to "VARBINARY", which is not recognized under DB2 or Derby).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449526 13f79535-47bb-0310-9956-ffa450edef68
2006-09-24 23:58:00 +00:00
Patrick Linskey ce937180b4 wrap types before deciding whether or not a cast is needed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449322 13f79535-47bb-0310-9956-ffa450edef68
2006-09-23 22:48:14 +00:00
Marc Prud'hommeaux 5dea14f301 Use the escape character to escape out wildcard characters from the source string.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449130 13f79535-47bb-0310-9956-ffa450edef68
2006-09-23 00:04:51 +00:00
A. Abram White b7f2721aff When selecting a relation field as a projection, outer join across the relation
even if forceOuter on the original path is false.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449105 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 22:06:06 +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
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 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 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
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
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
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