Commit Graph

715 Commits

Author SHA1 Message Date
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
Patrick Linskey 31010aa2ac Fixed JavaDoc typo
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512682 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 09:51:49 +00:00
Kevin W. Sutter 7303bcd5d5 Slight update for the changes introduced via svn revision 506230 (OPENJPA-138). Instead of just skipping the "null ClassLoader" (which indicates the SystemClassLoader), we'll use the static ClassLoader.getSystemClassLoader() method in order to populate the cache.
This change will help the non-container-managed environment (whereas the original change only benefitted the container-managed environment).

This was discussed on the dev mailing list between Patrick, Marc, and myself.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512357 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 18:48:19 +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
Kevin W. Sutter 5ae6e7594f These changes are reverting the changes integrated for revisions 510336 and 510281. From the remarks on the dev mailing list, the basic idea is sound, we just need to re-visit the implementation a bit.
One "problem" that I couldn't resolve with this revert process was to restore the svn history for the DB2Dictionary.java part.  Somehow, the history for this part was lost when revision 510336 was integrated.  I have not found a means of restoring that history.  But, at least the contents are back to a known state.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512327 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 17:23:27 +00:00
Marc Prud'hommeaux 53f19cbb4f removed the propertyaccess tests since they were failing (due, I believe, to a Derby bug) for some people
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512159 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 06:59:42 +00:00
Patrick Linskey 7db81e3d6c OPENJPA-158 -- reduced log level to TRACE for a variety of enhancement and metadata related messages
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512107 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 01:59:42 +00:00
Srinivasa Segu 2a95f80f44 OPENJPA-151.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@511998 13f79535-47bb-0310-9956-ffa450edef68
2007-02-26 20:46:03 +00:00
Patrick Linskey e20afb3134 OPENJPA-161
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@511043 13f79535-47bb-0310-9956-ffa450edef68
2007-02-23 18:25:55 +00:00
A. Abram White 65bd1f02e3 Second attempt at serializing to full properties, including defaults, rather
than just user-defined properties.  This ensures that on deserialization we
get the proper settings despite not running product derivations.  Previous
attempt caused problems on SunONE.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@510638 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 20:11:00 +00:00
David J. Wisneski 7eb91d0ec9 DB2 Optimize for clause enhancement
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@510336 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 01:03:06 +00:00
David J. Wisneski 2d3871b86b DB2 Optimize for clause enhancement
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@510281 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 22:50:04 +00:00
Srinivasa Segu 82a62a6b78 OPENJPA-157. Fix to use the getIndependentTypeMappings to handle the case of field's declared type being abstract/unmapped
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509885 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 04:06:45 +00:00
Patrick Linskey 0b8bf2818c OPENJPA-156. Applied Michael Dick's patch (thanks). Updated symbolic constant to use OpenJPA norms, changed references to external symbolic constants to use constants from the map impl being used, and reduced if-else statements for readability.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509793 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 22:51:50 +00:00
Pinaki Poddar 018cf3278a Use safe and standard way to print a pc.toString() using Exceptions.toString(Object) when logging messages that may cause infinite loop.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509691 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 18:08:22 +00:00
Pinaki Poddar e3f8a96205 Prevent access to the pc fields by implictly invoking _pc.toString() as that may cause infinite loop if toString() again tries to access unloaded field(s)
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509688 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 17:57:24 +00:00
A. Abram White 372b83736d OPENJPA-150 : Re-use parseColumns method when parsing AttributeOverride columns
so that we get secondary table information.  



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509674 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 17:37:18 +00:00
A. Abram White 1b446958f5 OPENJPA-146 : When copying an OID superclass field for re-mapping, revert type
to PC.  It will re-resolve to OID on its own when the field's metadata is
resolved, and in the meantime it will ensure we use the same path for 
metadata resolution as non-copied fields.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509632 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 16:33:54 +00:00
Srinivasa Segu 4f102a7c77 Capturing reference to the Column[] at the creation time in the RowImpl instead of the Table, to work with DynamicSchemaFactory where the Table's columns can get modified after the creation of the RowImpl before the flush.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509473 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 08:59:10 +00:00
Srinivasa Segu 09e7aab777 Capture the version fields into the memento when setting the savepoint and restore the version information into the StateManagerImpl as a part of the rollbackToSavepoint call.
Fix addresses OPENJPA-154.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509411 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 02:00:50 +00:00
A. Abram White 8974a09908 Only substantive change is flipping the order of the args in an
ImplHelper.isAssignable call in FetchConfigurationImpl.  We want to test 
whether the type we're traversing to is derived from the type we're traversing
from.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508459 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 16:02:05 +00:00
A. Abram White 4efc5d6997 Revert "full properties caching" changes made to ConfigurationImpl -- they're
causing problems on some appservers.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508445 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 15:23:09 +00:00
Kevin W. Sutter dfc102beba OPENJPA-141. A few improvements to the performance-related changes done with the previous Issue. Reference OPENJPA-141 for details. Biggest change was moving some of the common caching code to ImplHelper.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508395 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 13:52:08 +00:00
A. Abram White 7a2330ce3b Compare Configuration instances on their full properties, including defaults.
Also serialize the full properties because product derivations aren't re-run
on deserialize, so we need to know the complete defaults, etc.  We still track
the user-given properties separately so they can be used in factory pooling.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@507643 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 17:53:13 +00:00
A. Abram White 611932c86b git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@507152 13f79535-47bb-0310-9956-ffa450edef68 2007-02-13 18:44:15 +00:00
Marc Prud'hommeaux 1bef88aeb7 Added integration test for examples included in the package
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506906 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 08:31:32 +00:00
Marc Prud'hommeaux 01eddbee80 Removed dev.java.net repository since we no longer need it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506902 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 08:17:45 +00:00
Marc Prud'hommeaux ac5aa0823d Changed JPA API dependency from javax.persistence/persistence-api to org.apache.geronimo.specs/geronimo-jpa_3.0_spec since the latter is a more correct reflection of the specification.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506898 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 08:09:18 +00:00
Marc Prud'hommeaux db07362e27 Made entity classes non-final to conform to spec requirements.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506342 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 07:12:06 +00:00
Kevin W. Sutter e14378f7f3 OPENJPA-138. Some updates to help with performance of OpenJPA in an application server environment. Details can be found in the OPENJPA-138 Issue.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506230 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 02:33:05 +00:00
Marc Prud'hommeaux 7d0839f9ff Added extra debugging logic to make sure the default company model deserailizes from the companies.xml file.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505825 13f79535-47bb-0310-9956-ffa450edef68
2007-02-11 02:35:33 +00:00
Marc Prud'hommeaux ecf428bd69 Upgrade Derby dependency from 10.2.1.6 to 10.2.2.0
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505565 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 23:52:57 +00:00
Marc Prud'hommeaux d36faee0ab Fixed incorrect directory location for company model
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505515 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 21:50:41 +00:00
Marc Prud'hommeaux b8d3750346 Restored TCK logic that I accidentally deleted.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505197 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 06:16:07 +00:00
Marc Prud'hommeaux 3bacfce53c Added resource necessary for loading company model tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505188 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 05:37:11 +00:00
Marc Prud'hommeaux 195d5ddd6c Corrected issue with revision 505052 to ensure that isAssignable(from, to) passes if one element is null and the other element is an empty array (which indicates a compatible method signature).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505166 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 04:05:20 +00:00
Marc Prud'hommeaux 7f523e0ba9 Changes to deal with never version of the TCK.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505161 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 03:51:48 +00:00
Marc Prud'hommeaux 02f2cedb73 Added multiple different implementations of the same data model for flexibility testing; added a helper test case from which other tests can be extended to easily perform persistence operations
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505160 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 03:49:22 +00:00
Marc Prud'hommeaux a384218429 Changed assertion to check for javax.persistence.PersistenceException rather than org.apache.openjpa.persistence.PersistenceException, since the API may wrap the PersistenceException.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505159 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 03:45:17 +00:00