Commit Graph

2803 Commits

Author SHA1 Message Date
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
Marc Prud'hommeaux 9bfc9cf190 OPENJPA-166: Added new setRollbackOnly(Throwable cause) flag so the Broker can track the reason for why the transaction would be marked for rollback, and correspondingly added reporting of the cause in LocalManagedRuntime, as well as support for WLS's corresponding support in WLSManagedRuntime.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516597 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 23:07:49 +00:00
Patrick Linskey 0b90c67a8b OPENJPA-71: resolved inefficiency with array types and AbstractPCData
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515987 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 09:34:52 +00:00
Patrick Linskey 69c34cd385 OPENJPA-46: TRUE and FALSE should be case-insensitive in JPQL
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515986 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 09:34:25 +00:00
Patrick Linskey d2c748d109 OPENJPA-121: Table name defaults to the class name instead of the entity name. The key change is in PersistenceMappingDefaults; other changes include a new test case and removal of spurious @Table annotations from previous workaround.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515375 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 23:57:29 +00:00
Patrick Linskey 1af233a0b3 OPENJPA-80: MySQL escape string for string matches queries
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515043 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 09:33:06 +00:00
A. Abram White afce8f543a OPENJPA-162 : Allow explicit @OrderBy(<primary key field>).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@514847 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 20:14:02 +00:00
A. Abram White ebe1b5711e Fix a couple of errors in the code to default to the non-finalizing broker
in PersistenceProviderImpl.createContainerManagedEntityManagerFactory:
  1) Don't add to the given Map, because it might be read-only.  
  2) Prefix the BrokerImpl property correctly when adding it.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@513974 13f79535-47bb-0310-9956-ffa450edef68
2007-03-02 21:57:03 +00:00
Kevin W. Sutter 6e30b565b7 While looking at how the Caches are supposed to work, I found this reference to Tangosol's cache. And, since we don't ship the plugins for the third-party caches, I changed the wording in the manual.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@513417 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 17:44:44 +00:00
Patrick Linskey af1796f17c OPENJPA-160. Docs updates.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@513189 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 06:43:00 +00:00
Patrick Linskey dc797ab923 OPENJPA-160. Non-finalizing implementation is automatically selected when createContainerEntityManagerFactory() is invoked; clarified some method signatures.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@513183 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 06:31:50 +00:00
Patrick Linskey 661f673890 OPENJPA-160. Removed BrokerImpl test to make this work properly for subclasses. Since BrokerImpl is cloneable, all subtypes will also be cloneable, so we don't really need to test for anything.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512934 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 19:52:24 +00:00
Patrick Linskey 560f895102 OPENJPA-160
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512906 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 19:20:51 +00:00