Commit Graph

154 Commits

Author SHA1 Message Date
David J. Wisneski 7ae341d308 additional check for XmlRootElement annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566297 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 18:40:47 +00:00
Marc Prud'hommeaux ecc36a0f37 Build system work in preparation for 1.0.0 release; fixed some missing license headers; added maven ARAT plugin
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@565955 13f79535-47bb-0310-9956-ffa450edef68
2007-08-14 22:39:55 +00:00
Kevin W. Sutter 5c9642d5f4 OPENJPA-244. Committing Albert's changes for Java 2 Security (minus the white space).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@564408 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 22:27:17 +00:00
Patrick Linskey b7fe66357b Tolerate container failure better, now that we can handle non-enhanced types.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563705 13f79535-47bb-0310-9956-ffa450edef68
2007-08-08 00:05:40 +00:00
Patrick Linskey 63c3748900 OPENJPA-165
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563702 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 23:47:19 +00:00
Patrick Linskey 86e47000db OPENJPA-86
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563697 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 23:12:56 +00:00
Patrick Linskey 09e13c4ad8 Minor final-field change.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563654 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 20:59:39 +00:00
David J. Wisneski 79c7b280d3 OPENJPA-240 check null before adding field meta
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563377 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 03:03:58 +00:00
Marc Prud'hommeaux dd1ea27032 OPENJPA240 added missing null check
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563192 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 17:04:29 +00:00
Marc Prud'hommeaux e466dee5f9 OPENJPA240 added missing null check
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563184 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 16:48:10 +00:00
Marc Prud'hommeaux 156a7ffdd0 OPENJPA240 applied patch by Catalina Wei to remove static dependency on JAXB classes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563031 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 05:53:17 +00:00
David J. Wisneski 7ca46cf69d OPENJPA-240 XMLMapping Query - refactoring JAXB XML annotaion parser
Help Catalina committing OPENJPA-240.r560665.patch for refactoring JAXB XML annotation parser.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561376 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 16:19:24 +00:00
Patrick Linskey 8c1710ed63 OPENJPA-297
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560304 13f79535-47bb-0310-9956-ffa450edef68
2007-07-27 16:26:52 +00:00
Patrick Linskey 747226b1d6 OPENJPA-293. All tests pass, but only because we don't currently test Java 5 + redefinition (only Java 5 + no redef). We need a new version of serp (1.13.1) to support that configuration; the new version has not yet made it into ibiblio.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560016 13f79535-47bb-0310-9956-ffa450edef68
2007-07-26 22:08:37 +00:00
Pinaki Poddar 0260d8de47 Making inner ConfigurationParser public for reuse.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557761 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 20:13:32 +00:00
Kevin W. Sutter 62ae83f3b5 Minor updates to help with translation and formatting of messages. Items like removing contractions like "can't" and "doesn't". Also, ensuring there are two single quotes for possive like "Provider's".
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@556926 13f79535-47bb-0310-9956-ffa450edef68
2007-07-17 13:43:40 +00:00
Marc Prud'hommeaux 8b5a7f68a0 OPENJPA-244 Fixed some formatting inconsistencies with the patch for OPENJPA-244
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553010 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 22:42:39 +00:00
Michael Dick 0c517d163e OPENJPA-244 committing on behalf of Albert
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552996 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 21:55:29 +00:00
Marc Prud'hommeaux 85b2e766ca OPENJPA-239 Patch to support the generation of annotation mappings using the reverse mapping tool
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552358 13f79535-47bb-0310-9956-ffa450edef68
2007-07-01 19:37:04 +00:00
Patrick Linskey 1b9d1e2d12 OPENJPA-262. Added test case for lifecycle and tx registries in BrokerFactories. Also discovered that BEFORE_PERSIST listeners (and possibly a couple of others) were not being invoked; fixed-by-inspection and simplified the registration of types in the lifecycle event handler.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@551885 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 13:18:26 +00:00
Marc Prud'hommeaux 3599a48964 Moving version to 1.0.0-SNAPSHOT as a result of mailing list vote
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@541929 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 19:18:37 +00:00
Marc Prud'hommeaux 0e19b714ac Changed version from 0.9.8-incubating-SNAPSHOT to 0.9.8-SNAPSHOT to reflect move from incubation to TLP
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@540829 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 03:36:05 +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
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
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
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
Marc Prud'hommeaux af2550bb05 OPENJPA-208 Throw NoResultException and NonUniqueResultException when expected
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526322 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 23:52:03 +00:00
Patrick Linskey 840644fcc5 OPENJPA-182. Changed JDBCFetchPlan.setIsolation() to use enums; added logic to handle enum hints to QueryImpl; moved from IllegalArgumentException to InvalidArgumentException to unify exception processing for both queries and find calls.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526316 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 23:22:06 +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 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
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
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
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
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
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
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
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
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
Kevin W. Sutter d826caf711 OPENJPA-119. Needed to allow the EM.clear operation to perform without doing an implicit flush. Introduced a new boolean
parameter to indicate whether a flush is desired or not.  This allows both the new (correct) behaviour for JPA as well as the 
old behaviour for other persistence personalities (JDO, etc).  I also introduced a new testcase for this scenario, and updated 
a couple of other tests.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502751 13f79535-47bb-0310-9956-ffa450edef68
2007-02-02 21:12:35 +00:00
Craig Russell 862cd158ed OPENJPA-122 Added check for methods that require the EntityManager to be open but where the Broker would throw a different exception
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502325 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 19:35:30 +00:00
Marc Prud'hommeaux 2ac1bcccbb OPENJPA-118: Implemented patch provided by David Ezzio for broken openjpa.AutoDetach behavior
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502022 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 22:27:29 +00:00
A. Abram White 372e899981 Change EntityManagerImpl.assertOpen to EntityManagerImpl.assertNotCloseInvoked
to more accurately reflect the purpose of the method.  Fix several instances
where we were relying on the method to actually check whether the underlying
broker was open.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501468 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 16:56:13 +00:00
Kevin W. Sutter 17c6580e4c Changes for JIRA OPENJPA-116 issue.
Added a test to ensure that the EntityManager was still open before executing the getDelegate() code.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501445 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 16:19:59 +00:00
Marc Prud'hommeaux 0273937971 If we don't know the access type for a class when parsing, first check for a superclass and default to that class' access type.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501256 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 00:54:27 +00:00
Marc Prud'hommeaux 24cf4c939e If we don't know the access type for a class when parsing, first check for a superclass and default to that class' access type.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501255 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 00:54:19 +00:00