Commit Graph

324 Commits

Author SHA1 Message Date
Marc Prud'hommeaux 75e59a4e65 Test commit for new repository.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@540826 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 03:10:18 +00:00
Marc Prud'hommeaux bc0c353ef0 OPENJPA-148 Fixed incorrect import of non-existent ClassLoaderMetaDataIterator in patched file
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@540301 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 21:17:02 +00:00
Marc Prud'hommeaux 04397f562e OPENJPA-148 Applied follow-up patch that resolved potential NPEs
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@540283 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 20:45:09 +00:00
Marc Prud'hommeaux 81e89bcd80 Formatting fix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@539813 13f79535-47bb-0310-9956-ffa450edef68
2007-05-20 01:25:52 +00:00
Patrick Linskey add6a29be4 OPENJPA-230. Fixed dependency on not-yet-checked-in class.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@537227 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 16:37:15 +00:00
Patrick Linskey 15b0b59f25 OPENJPA-230. Updated patch based on an out-of-band patch from Vishal. This version avoids interrupts while still handling guaranteed delivery of messages in the queue.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@537221 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 16:12:07 +00:00
Marc Prud'hommeaux a92785fea6 OPENJPA-194 Changed openjpa-all-VERSION.jar to be just openjpa-VERSION.jar, and changes openjpa-project-VERSION.zip to be apache-openjpa-VERSION.zip
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536693 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 22:23:54 +00:00
Patrick Linskey d9fbb9cc11 Propagate the provided classloader further into the PCEnhancer call stack.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536001 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 21:38:20 +00:00
Marc Prud'hommeaux e422a7d179 OPENJPA-148 Applied the rest of the patch for this bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535321 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 16:36:15 +00:00
Marc Prud'hommeaux 2f4cafdcfb OPENJPA-148 Fix for scanning directories for persistent types.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535139 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 09:31:17 +00:00
Patrick Linskey 43c931014a OPENJPA-226
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@533218 13f79535-47bb-0310-9956-ffa450edef68
2007-04-27 20:46:03 +00:00
Patrick Linskey b2beaec634 OPENJPA-229
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532805 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 17:17:10 +00:00
Marc Prud'hommeaux 0819749391 Fixed MetaDataException to take a nested Throwable argument (which is the common case) instead of a FailedObject Object argument (which many of the existing constructions of MetaDataException are erronously using with a nested Throwable argument)
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532524 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 23:13:12 +00:00
Patrick Linskey f7770883a4 Usability improvements discovered while working on OPENJPA-228. When loading enumerated types in the enhancer, pass them to serp as strings rather than as classes. This permits the use case where a subclass and superclass are both compiled and enhanced, and then the superclass is recompiled, and the subclass and superclass are both listed in persistence.xml, and the enhancer is then invoked.
Similarly, treat NoSuchMethodErrors that contain the string '.pc' as warnings rather than errors in MetaDataRepository.classForName().

Finally, changed MetaDataRepository errors to stringify internal data sets eagerly, to avoid leaking incorrect information into error messages.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532273 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 09:19:51 +00:00
Patrick Linskey 14ba7eed94 Added OpenJPAVersion.RELEASE_STATUS to log messages to more completely encapsulate version data.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532151 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 00:17:23 +00:00
Patrick Linskey 0e7feca04a OPENJPA-219. Avoid Class.getDeclaredField() / Class.getDeclaredMethod() in Reflection, since they throw exceptions as a side-effect. Also contains assorted clean-up in ClassMetaData.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532137 13f79535-47bb-0310-9956-ffa450edef68
2007-04-24 23:34:46 +00:00
A. Abram White 9e044de7a7 Fix broken functionality in allowing users to construct a custom application
oid from its stringified form.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532057 13f79535-47bb-0310-9956-ffa450edef68
2007-04-24 19:53:37 +00:00
A. Abram White 44c97873fb Fix bytecode generation to use new FetchConfiguration.requiresFetch signature.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532039 13f79535-47bb-0310-9956-ffa450edef68
2007-04-24 18:43:43 +00:00
Marc Prud'hommeaux 640cddad04 Updated license headers to be in accordance with http://www.apache.org/legal/src-headers.html
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@528881 13f79535-47bb-0310-9956-ffa450edef68
2007-04-14 21:50:17 +00:00
Michael Dick 4ea1c3f738 adding license to java files
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527728 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 23:52:54 +00:00
A. Abram White 3885031a89 OPENJPA-214 : Support float and double fields as single-field identity primary
keys.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527648 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 20:25:11 +00:00
A. Abram White b4a3a77840 OPENJPA-134 : When we're performing eager fetches and we can detect that we're
already fetching the owning side of a bidi relation, cut off eager selecting 
and loading when we come across the back-ptr to the owner again.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527565 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 16:21:13 +00:00
Marc Prud'hommeaux 0806fd5b44 OPENJPA-208 Added NoResultException and NonUniqueResultException to kernel to allow the identification of the case where a unique result was selected by either none or too many were found
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526834 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 17:06:23 +00:00
Michael Dick 7fd119e840 updating trunk version
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526476 13f79535-47bb-0310-9956-ffa450edef68
2007-04-07 19:54:18 +00:00
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
A. Abram White 4bf637f074 Improve error checks for mapped-by mappings. Mark deleted instances as
eligible for state restore on rollback so they don't always clear.  Always
cascade attach to embedded instances.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512350 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 18:14:45 +00:00