Commit Graph

240 Commits

Author SHA1 Message Date
Marc Prud'hommeaux 9851f62748 Put getJDBCMajorVersion() in a try/catch block, since it is a JDBC 3-only method, so it might throw an AnstractMethodError.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495027 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 23:00:38 +00:00
Pinaki Poddar 3e6410b75d Adding @UniqueConstraint annotation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492225 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 17:17:38 +00:00
Patrick Linskey 942599e797 deleteTableContents optimization for MySQL. This is disabled by default, as MySQL may fail if using InnoDB + delete constraints.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492032 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 03:02:45 +00:00
Patrick Linskey 4bbf599c45 Added new SchemaTool action: deleteTableContents, and added support for comma-separated lists of schema actions, both via the MappingTool -schemaAction option and via direct SchemaTool usage. This implementation always processes all of the known types in the system; I have not tested running MappingTool against just one or two classes to see what 'all of the known types in the system' really means.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492024 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 02:44:57 +00:00
Patrick Linskey a255da6f65 submitting patches for OPENJPA-92. I have not tested them aside from compiling and running the regression tests (against Derby).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491148 13f79535-47bb-0310-9956-ffa450edef68
2006-12-30 01:38:33 +00:00
Patrick Linskey 4611bf9e43 Code changes for OPENJPA-93: sequence maintainance in JTA env without non-JTA datasource. This has been nominally tested in WebLogic Server.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491147 13f79535-47bb-0310-9956-ffa450edef68
2006-12-30 01:20:55 +00:00
Kevin W. Sutter 6cb121e192 Changes for JIRA OPENJPA-77 issue.
These changes allow the use of the DB2Dictionary with DB2 on z/OS.  May need more in the future, but these will get us started...


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491027 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 15:19:17 +00:00
Srinivasa Segu 2508046403 Fix - return the qualified SecondaryTableName
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489768 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 21:21:19 +00:00
A. Abram White 87b5ae1f4f JIRA OPENJPA-90
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487605 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 18:00:30 +00:00
Marc Prud'hommeaux 148d8f8df2 Wrap non-Collection arguments in Collections so that the query language can support having both varargs "in" clauses as well as clauses that take a Collection parameter.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@486429 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 00:26:47 +00:00
A. Abram White e54b0c1908 Move to dynamically-created bytecode proxies for second class objects, rather
than checked-in proxy classes.  This allows us to proxy custom collection,
map, and bean types.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484693 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 18:32:07 +00:00
Craig Russell b8710bea03 Added property svn:eol-style=native
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482327 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 19:59:52 +00:00
Kevin W. Sutter 970f647622 Resolving JIRA report OPENJPA-63 for better pessimistic lock support for DB2. Instead of the usual "for update" clause, db2 dictionary will now use "with rr use and keep update locks" clause.
A couple of additional changes were necessary to properly detect the version of DB2 currently in use.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482189 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 14:42:09 +00:00
Patrick Linskey 8015a253b6 fixed typo
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@479940 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 08:16:34 +00:00
A. Abram White 728413153f Fix bug in which abstract JPA entities were being mapped to tables when the
declared inheritance strategy for the hierarchy was TABLE_PER_CLASS (which 
actually means table-per-concrete-class).



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475321 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 17:43:02 +00:00
Patrick Linskey 3a5185700f invoke the close() callback at the beginning of ConfigurationImpl.close(); change other ConfigurationImpl subtypes to use preClose() instead of now-final close(); add test case for close callbacks.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475115 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 04:20:30 +00:00
Patrick Linskey 301580c069 made a number of configuration-related classes serializable to facilitate alternate means of configuration population; moved away from a couple more usages of commons collections LinkedMap; added new lifecycle callback to ProductDerivation interface
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475059 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 23:42:42 +00:00
Marc Prud'hommeaux 3e8f9d931a Updated to version 0.9.7-incubating-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474069 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 22:28:45 +00:00
Marc Prud'hommeaux 813bb89223 Updated to version 0.9.6-incubating
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474050 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 21:36:52 +00:00
Marc Prud'hommeaux ef56f8281b Updated to version 0.9.7-incubating-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473962 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 12:59:24 +00:00
Marc Prud'hommeaux ead07f40c0 Rolled back to 0.9.6-incubating to re-run the release process; fixed licenses in NOTICE.txt; added license headers to files where they were missing; removed sun.misc.Perf class, since we are no longer supporting JDK 1.3 (and it is only unavailable in 1.3 and lower)
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473939 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 11:44:59 +00:00
Patrick Linskey de3f43a5cd moved to JDK1.4
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473448 13f79535-47bb-0310-9956-ffa450edef68
2006-11-10 19:44:47 +00:00
A. Abram White fb770599b0 Fix for deeply nested subqueries, and for the JPQL IN(<subquery>) construct.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473140 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 23:55:41 +00:00
Marc Prud'hommeaux cf56e213a9 Updated to version 0.9.7-incubating-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472718 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 00:41:04 +00:00
A. Abram White 8efffbdd4b Test for the OpenJPAQuery.setSubclasses method.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472310 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 22:38:37 +00:00
A. Abram White 3b9fa1f25a Bugfix for when abstract base class has no discriminator value. Cleanup of
query compilation cache additions.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472275 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 21:20:57 +00:00
Marc Prud'hommeaux 0e02efdfbf Updated version to 0.9.6-incubating in hopes of having a release
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472238 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 20:34:03 +00:00
A. Abram White 92343313fb Fix recently-introduced bugs in conversion between JPA facades and underlying
components.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472193 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 18:37:33 +00:00
Patrick Linskey 9e85e90c1e correct configuration property name
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471499 13f79535-47bb-0310-9956-ffa450edef68
2006-11-05 19:25:16 +00:00
A. Abram White 9623c5c6f8 Support many-one and one-one relations as primary key fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471045 13f79535-47bb-0310-9956-ffa450edef68
2006-11-03 23:15:08 +00:00
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
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
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
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
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
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
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
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
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 1e5d09ce2f Forgot to add new classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@441242 13f79535-47bb-0310-9956-ffa450edef68
2006-09-07 21:45:54 +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
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 de9352568f Expanded default doubleTypeName to be NUMERIC so it can properly fit a double.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@437982 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 06:23:13 +00:00
Marc Prud'hommeaux 5ff49b37b9 Removed check for Long.MIN_VALUE, since recent version of HSQL do not have the storage limitation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@437981 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 06:14:59 +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
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
A. Abram White 746ebdfdc9 Slightly cleaner and in some cases more efficient exclusion of
persistence-aware types from mapping tool actions.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434473 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 19:05:51 +00:00
Pinaki Poddar d0f15b881a Modified to ignore p-aware classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434303 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 05:13:20 +00:00
Pinaki Poddar 6e262960ae MappingTool modified to ignore persistence-aware classes
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434251 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 23:45:42 +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 6f0a7f67da Added expression-level support for Map.get in queries
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433460 13f79535-47bb-0310-9956-ffa450edef68
2006-08-22 01:50:43 +00:00
A. Abram White d5bb522c34 No need for parser to populate separate QueryExpressions.aggregate member now
that we can visit the projection values to see if they're aggregates.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433431 13f79535-47bb-0310-9956-ffa450edef68
2006-08-21 23:53:49 +00:00
A. Abram White 9de5395486 Add some query validations on compilation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433399 13f79535-47bb-0310-9956-ffa450edef68
2006-08-21 22:29:47 +00:00
A. Abram White 037a45d7e4 Add visitor pattern to query expression trees, and redo a couple of our existing
tree interrogation methods to use it.  This will allow us to add more 
validations at query compilation time (we're missing some that are required for
JDO 2, for example) without having to expand the API of every query 
expression/value implementation, in addition to just being more flexible 
overall.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@432778 13f79535-47bb-0310-9956-ffa450edef68
2006-08-19 01:03:35 +00:00
A. Abram White eb2b5e6551 Method visibility fix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@432447 13f79535-47bb-0310-9956-ffa450edef68
2006-08-18 00:21:04 +00:00
A. Abram White 69b83ac3ff When a query projects and groups on a relation field, make sure to group on
the same columns we select.  Added Select.groupBy(ClassMapping, ...) API.
Implemented by temporarily putting target Select into "group mode" -- in which 
all select() calls are instead routed to groupBy() calls -- and invoking the 
same JDBCStoreManager.select() logic we use for the 
Select.select(ClassMapping...) call.  Having the Select "fake out" its callers
by translating select() calls into groupBy() calls isn't necessarily pretty, 
but it allows us to re-use all our existing select logic (not just in 
JDBCStoreManager, but in all the class, field, discriminator, version, etc 
mapping strategies) rather than creating duplicate logic in parallel groupBy() 
methods in all these components.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@432444 13f79535-47bb-0310-9956-ffa450edef68
2006-08-18 00:17:30 +00:00
A. Abram White 2ccc242679 When a relation mapping uses the expected class of the related type as part of
its join criteria (in addition to the standard foreign key join), make sure
discriminator conditions are appended to the WHERE SQL not only when loading
the relation, but also when traversing it in queries.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@432067 13f79535-47bb-0310-9956-ffa450edef68
2006-08-16 23:27:04 +00:00
A. Abram White aba057d644 Allow our JPA ConfigurationProviderImpl to find a default persistence unit in
persistence.xml when no explicit configuration is given to dev tools.  Do this
in a backwards-compatible way that won't break previous behavior or other facade
behavior (JDO).  This means you should no longer have to pass 
"-p persistence.xml" to tools like the enhancer, nor should you have to specify
a properties argument to the PCEnhancerAgent in the premain for runtime 
enhancement.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430897 13f79535-47bb-0310-9956-ffa450edef68
2006-08-11 21:07:58 +00:00
A. Abram White 5bef32e516 Make Localizer.Message a static class. Fix implicit type of query path
traversal terminating in byte[], char[] fields.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430146 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 20:59:45 +00:00
Patrick Linskey 6234f8d3da Changed logging infrastructure to be aware of localization; changed localization to return log-ready Message instances instead of strings. Changed tons of code to use the new logging and localization calls.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@429535 13f79535-47bb-0310-9956-ffa450edef68
2006-08-08 01:42:34 +00:00
A. Abram White 1e6d57eb55 git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@429477 13f79535-47bb-0310-9956-ffa450edef68 2006-08-07 21:02:31 +00:00
A. Abram White f70f99e638 SQL CAST() for comparisons and math functions fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428885 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 21:14:29 +00:00
A. Abram White eb333839db More work on type promotion and casting in queries. Also, make sure DFG is
in active fetch groups before testing it for post-load callbacks.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428484 13f79535-47bb-0310-9956-ffa450edef68
2006-08-03 19:16:47 +00:00
A. Abram White a6b57c2e9c Fixes to optimization logic for including joined subclass data in initial
SELECT.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428193 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 23:37:02 +00:00
A. Abram White b2e1912dc7 Fix StoreFacadeTypeRegistry to work when multiple stores are available. Fix
problems with creating a persistence FetchPlan, and with getting max depth.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428069 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 17:51:43 +00:00
A. Abram White 20d5990098 Fix logic for when to select fk column values of a to-one relation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427815 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 00:19:41 +00:00
A. Abram White a98213071a Use latest stable releases of commmons dependencies. Add missing localized msg.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427784 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:09:17 +00:00
Pinaki Poddar 021c4b85d5 Added Serialzable interface
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427685 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 19:31:13 +00:00
Marc Prud'hommeaux 803e15990d Null check before we put username/password values in the Properties object, since null values are illegal.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427389 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 00:55:41 +00:00
A. Abram White a95e7007cf git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427284 13f79535-47bb-0310-9956-ffa450edef68 2006-07-31 21:23:16 +00:00
A. Abram White 979d2340e9 Cleanup of fetch group metadata and internal runtime APIs. Now that fetch depth
information is immutable within a fetch instance and cloned on relation 
traversal, it was safe to combine fetch state back into the fetch configuration 
class and remove the fetch state class for cleaner APIs (no more having some
components use fetch state and others fetch configuration). Also changed
recursion depth logic to more accurately mirror intent (per JDO spec), though 
testing is needed. 



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426710 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 23:48:13 +00:00
Pinaki Poddar 3b6518f174 FetchState is traversed for eagerToMany load/select
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426702 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 23:19:43 +00:00
Patrick Linskey 1236605135 removed unneeded imports
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426228 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 20:27:45 +00:00
Patrick Linskey 64db310695 corrected some configuration properties that do not allow alternate values
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426216 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 19:57:37 +00:00
Marc Prud'hommeaux f75ef7b7f9 Cast to floats and doubles to ensure that we use the correct constructor (e.g., since there is a new BigDecimal(int) constructor in JDK 1.5 that we don't want to accidentally rely on).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425822 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 19:59:12 +00:00
Marc Prud'hommeaux 3c702ef0d1 Added openjpa-project for assembly descriptiors and docs; upped version to 0.9.0
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425608 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 04:24:28 +00:00
Patrick Linskey 5556a4085c updated property namespace
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425553 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 23:14:45 +00:00
A. Abram White 3b1cb17cba General cleanup of cruft accumulated during separation from Kodo.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425473 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 18:14:45 +00:00
Pinaki Poddar 884ff1b863 FetchPlan with recursive scheme.
- modified select building and load cycles in JDBCStoreManager with FetchState traversal 
- loadAll(), findAll() methods reverted to their method signature with FetchConfiguration instead of FetchState
- StateManager.postLoad checks for fetch group with postload set to true 

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425312 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 07:10:26 +00:00
Stephen Kim 42136d9d12 removed kodo plugin
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425138 13f79535-47bb-0310-9956-ffa450edef68
2006-07-24 18:08:30 +00:00
Patrick Linskey ca8633ab49 removed unneeded code; updated configuration metadata; changed visibility of XML-conversion method; moved import to imports rather than fully-qualified class name
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424456 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 20:55:44 +00:00
Patrick Linskey 958386b2b2 remove duplicate code
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424363 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 15:54:20 +00:00
Patrick Linskey a1f4fd3eb0 changed some more finally and catch blocks that didn't get properly reformatted with earlier reformattings / sed scripts
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423693 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 01:15:04 +00:00
Patrick Linskey b108a39e7e removed executable flag from all files in trunk, as per Craig's email to OpenJPA list
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423647 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 22:50:34 +00:00
Patrick Linskey aad47c26bd cleaned up some dead code
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423627 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 21:56:52 +00:00
Patrick Linskey 7d1c8fccaf OpenJPA JDBC subsystem; reformatted some core OpenJPA code to move catch and finally blocks around.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423615 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 21:34:44 +00:00