Commit Graph

1015 Commits

Author SHA1 Message Date
A. Abram White 31c7a575e7 Remove unneeded import.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526259 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 19:27:52 +00:00
A. Abram White 60a1e54f07 OPENJPA-202 : Don't detach LRS fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526253 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 19:17:44 +00:00
Patrick Linskey 8ece757233 OPENJPA-182
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526212 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 16:08:27 +00:00
A. Abram White 1c8f82b810 Move LockManager API back to using int timeouts, since that's the way they're
handled elsewhere (FetchConfiguration, Broker, etc). Only use the lock timeout
on a forUpdate query if it is greater than the configured query timeout. 
Selects that are made *only* to lock a row (rather than to query data, with 
locking as a side effect) still use the lock timeout exclusively, ignoring the 
query timeout.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526192 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 15:08:39 +00:00
Michael Dick 1773160684 updating releasenotes and changes.txt
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526149 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 13:16:45 +00:00
Srinivasa Segu c5d82a70d5 OPENJPA-203. Fix select-for-update queries to timeout after the LockTimeout interval
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526059 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 05:21:35 +00:00
Patrick Linskey 57442b7059 HSQL doesn't support locking; short-circuiting tests that require pessimistic locking
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526005 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 23:57:44 +00:00
Patrick Linskey 7f998f10f1 Null check.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525999 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 23:13:33 +00:00
Patrick Linskey 814637ca6c OPENJPA-182. Moved to API-based model. Query.setHint() can still be used via the query hint => fetch plan binding.
Removed the logic to override the forUpdate value, since the calling code already incorporates fetch configuration data into its decision about how to invoke toSelect(). Added a test case to assert this behavior.

Also cleaned up some minor whitespace issues, and reduced code duplication by moving a couple of concepts up into DBDictionary. Removed some seemingly-unnecessary overrides from H2Dictionary.

Added a test case for isolation level configuration. For non-DB2 dictionaries, it asserts that an exception is thrown during execution. Someone with DB2 knowledge / access should fill in the test case for the DB2 cases. As we add support for per-query isolation level configuration for other databases, we should change this test case.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525997 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 22:55:52 +00:00
Srinivasa Segu e541936463 OPENJPA-203.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525950 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 20:06:24 +00:00
A. Abram White 80f7795fef Cleanup bugfix relating to use of a default schema declared in orm.xml:
- Removed prepending of schema name in PersistenceMappingDefaults.getTableName
  methods as unnecessary.
- Moved storage of default schema name to ClassMappingInfo as that's the only
  place we use it for now.
- Moved setting of default schema name into the more efficient endClassMapping
  method of XMLPersistenceMappingParser.
- Fixed MappingInfo.createTable logic to pass the full table name to 
  SchemaGroup.findTable.  This is important b/c the DynamicSchemaGroup (used
  during the mappingtool's buildSchema action, the default for JPA) dynamically
  adds the table to itself during the findTable operation.  Without the full
  table name it would always add the table to the default schema.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525606 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 21:13:19 +00:00
David J. Wisneski db2a53ff2d removing unneeded method in OPENJPA-182 fix
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525602 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 21:02:51 +00:00
Craig Russell cf47647dcd Minor change of Sun to JCP
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525591 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 19:34:15 +00:00
Patrick Linskey 7bd43ff2e0 OPENJPA-184: handle the case where dict is null in SQLExceptions by moving the logic into DB2Dictionary.newStoreException().
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525583 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 19:17:11 +00:00
Michael Dick fa68b7dcad updating release-notes with suggestions from Roberty Burrel Donkin
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525579 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 19:06:46 +00:00
David J. Wisneski 5d18f26c10 fixing little formatting for OPENJPA-184
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525573 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 18:48:03 +00:00
David J. Wisneski 729c7af474 changes for OPENJPA-184.Appending DB2Diagnosable information to the exception.No logging done.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525572 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 18:45:40 +00:00
David J. Wisneski 6fe50aa433 fix to OPENJPA-182 commit
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525262 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 20:24:39 +00:00
Craig Russell 4754f0921c Fixed autoboxing issue
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525258 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 20:02:07 +00:00
David J. Wisneski 9e8e265d6c changes for JIRA OPENJPA-182
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525252 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 19:34:59 +00:00
Patrick Linskey 9c25f9bdf5 Minor formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525213 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 17:20:01 +00:00
Marc Prud'hommeaux 24538f5431 Added missing 'join-bad-col-name' localized string.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525029 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 04:46:24 +00:00
Michael Dick cf7ae01b08 adding release notes, changes.txt, and building.txt
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525023 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 04:19:30 +00:00
Michael Dick f023f58562 OpenJPA-179 store defaultSchemaName in ClassMapping
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525006 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 02:48:10 +00:00
Marc Prud'hommeaux 10bdc61b91 OPENJPA-196 Removed the requirement that the number of positional parameters assigned to a query correspond exactly to the number of positional parameters declared in that query.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@524939 13f79535-47bb-0310-9956-ffa450edef68
2007-04-02 21:59:21 +00:00
Michael Dick 57f9f3af1d OpenJPA-185 allow optional to be overriden by xml descriptor.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@524921 13f79535-47bb-0310-9956-ffa450edef68
2007-04-02 21:14:48 +00:00
A. Abram White 8167400e51 Bring some consistency to test case structure. Now all persistent test cases
extend SingleEMFTestCase or SingleEMTestCase as appropriate.  These base test
cases contain utilties for initializing the EMF on setup and deleting any
inserted database records and closing the EMF on teardown.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@524228 13f79535-47bb-0310-9956-ffa450edef68
2007-03-30 18:45:15 +00:00
Marc Prud'hommeaux 3d929be170 OPENJPA-194 Changed name of openjpa-all-VERSION.jar in the assembly to be openjpa-VERSION.jar
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523798 13f79535-47bb-0310-9956-ffa450edef68
2007-03-29 19:00:10 +00:00
Patrick Linskey fe900d97fe by default, our build should not try to run the TCK build. Or, at least, it should not fail if the TCK isn't present, which was the behavior prior to this patch.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523613 13f79535-47bb-0310-9956-ffa450edef68
2007-03-29 07:59:37 +00:00
A. Abram White 1679c05c89 Cleanup and fixes to changes for OPENJPA-168.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523425 13f79535-47bb-0310-9956-ffa450edef68
2007-03-28 17:43:35 +00:00
Marc Prud'hommeaux 3a5d06436c OPENJPA-186 Forced the version of maven-surefire-plugin to be 2.2 due to building issues with 2.3
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523398 13f79535-47bb-0310-9956-ffa450edef68
2007-03-28 16:28:09 +00:00
David J. Wisneski fee930886b fixing indentation and few changes suggested by Abe for OpenJPA patch-168
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523071 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 20:47:21 +00:00
A. Abram White f7aef45814 OPENJPA-181 : Fix class cast exception by passing along the StoreQuery context
whenever we pass around an Executor, so that the StoreQuery and Executor are
always matched.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523046 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 19:24:54 +00:00
A. Abram White df02d831e2 Only process registered classes that are listed as belonging to this persistence
unit.  



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@522623 13f79535-47bb-0310-9956-ffa450edef68
2007-03-26 20:52:14 +00:00
A. Abram White 9b61ded11b Simplify breaking up long IN clauses into multiple OR'd IN clauses based on the
dictionary's IN clause limit



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@522600 13f79535-47bb-0310-9956-ffa450edef68
2007-03-26 19:17:10 +00:00
David J. Wisneski 442c1cee48 Patch for OPENJPA-168
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@522581 13f79535-47bb-0310-9956-ffa450edef68
2007-03-26 17:59:03 +00:00
Marc Prud'hommeaux 91cc432676 OPENJPA-176 Made the stringified exception prefixes scrutable.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@522097 13f79535-47bb-0310-9956-ffa450edef68
2007-03-24 19:37:32 +00:00
Srinivasa Segu ae2d8685e1 OPENJPA-175. PagingResultObjectProvider to use FetchBatchSize when set for eager selects. Fix to handle Oracle in-clause limit of 1000
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@521443 13f79535-47bb-0310-9956-ffa450edef68
2007-03-22 20:26:18 +00:00
Marc Prud'hommeaux 68e4f9a85b Whitespace formatting fix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@520651 13f79535-47bb-0310-9956-ffa450edef68
2007-03-20 23:18:31 +00:00
A. Abram White 123fce5b60 Tests for java.sql.Date id fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@520525 13f79535-47bb-0310-9956-ffa450edef68
2007-03-20 19:08:41 +00:00
A. Abram White eb27482080 OPENJPA-132 : Fix bugs with using a field of type java.sql.Date/Time/Timestamp
as a single-field identity primary key.  Replaced "generationtype" test package
with "identity" test package and moved old identity generation tests to new
package, along with new test for java.sql.Date id fields.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@520522 13f79535-47bb-0310-9956-ffa450edef68
2007-03-20 19:00:38 +00:00
A. Abram White 229f24547a OPENJPA-174 : Remove legacy code throwing an exception when attempting to
construct an oid instance for an abstract persistent type.  Improve error
message in ApplicationIds when attempting to create a new id instance when the
id class is abstract.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@520117 13f79535-47bb-0310-9956-ffa450edef68
2007-03-19 21:46:45 +00:00
Kevin W. Sutter 4ce16ed9d3 Fixed up a couple more "kodo" references...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@518748 13f79535-47bb-0310-9956-ffa450edef68
2007-03-15 20:35:07 +00:00
Kevin W. Sutter 17c21b7bea Slight updates to the manual to connect the JPA CascadeType.REMOVE processing with the OpenJPA @dependent annotation.
This is in response to the dev mailing list discussion:  http://www.nabble.com/forum/ViewPost.jtp?post=9360585&framed=y

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@518192 13f79535-47bb-0310-9956-ffa450edef68
2007-03-14 15:46:43 +00:00
A. Abram White fabdf10407 Fix recently-introduced bug in handling of arrays in data cache. Add test for
a shared id value among sibling classes deriving from the same mapped 
superclass.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@518190 13f79535-47bb-0310-9956-ffa450edef68
2007-03-14 15:44:55 +00:00
Marc Prud'hommeaux 1da2bd7240 Added useSystemClassLoader, which is required for maven-surefire-plugin version 2.3
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@518020 13f79535-47bb-0310-9956-ffa450edef68
2007-03-14 05:10:07 +00:00
Patrick Linskey 148519ba2a Removed unneeded import.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516751 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 17:19:31 +00:00
Patrick Linskey 853fb319ba OPENJPA-35: fixed bulk update / bulk delete logic to properly clear out the data cache as well as the query cache. We could probably change the logic to remove the query cache mutations, since the data cache clear should automatically clear out the query cache as needed. Also changed the test framework a bit to allow for easier test harness creation without using SingleEMTest, which required providing access to the open brokers from AbstractBrokerFactory.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516750 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 17:15:49 +00:00
Patrick Linskey b5bab78e04 OPENJPA-142: read entity names specified in XML. Also added comment clarifying that ClassMetaData.setTypeAlias() is only used at enhance time.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516682 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 11:14:44 +00:00
David J. Wisneski d35bc8a306 fix for OPENJPA-22
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516624 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 00:34:09 +00:00