Commit Graph

163 Commits

Author SHA1 Message Date
David J. Wisneski 462cf31ed5 OPENJPA-240 XMLMapping Query testcase - fix identation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557444 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 01:32:03 +00:00
David J. Wisneski b761732fdf OPENJPA-240 XMLMapping Query testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557442 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 01:07:53 +00:00
Craig Russell b8bb8404a9 OPENJPA-235 break-nullable-patch contributed by Markus Fuchs
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557089 13f79535-47bb-0310-9956-ffa450edef68
2007-07-17 23:56:45 +00:00
Patrick Linskey 4b6b578f2b OPENJPA_283. Committing Ignacio Andreu's patch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@555694 13f79535-47bb-0310-9956-ffa450edef68
2007-07-12 16:52:22 +00:00
Patrick Linskey 3408ef1e0c New test case. It works already, so this is mostly just additional coverage.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@555389 13f79535-47bb-0310-9956-ffa450edef68
2007-07-11 20:36:55 +00:00
Patrick Linskey 774e7b5b8c OPENJPA-274, OPENJPA-275. Improved our bulk update support to automatically increment version counters as necessary if an UPDATE query does not maintain the version fields itself. Also fixed a bug with all queries involving version fields by changing FieldMappings representing version fields to return their owning ClassMapping's Version's columns from a getColumns() call.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553912 13f79535-47bb-0310-9956-ffa450edef68
2007-07-06 14:49:52 +00:00
Patrick Linskey e286a915d5 OPENJPA-278
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553629 13f79535-47bb-0310-9956-ffa450edef68
2007-07-05 20:51:01 +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
Patrick Linskey 1bded00298 OPENJPA-199. Passed all local tests; I have not run against the CTS though. It *should* work against the CTS, as it was a bug on our side, and not the spec's side.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552363 13f79535-47bb-0310-9956-ffa450edef68
2007-07-01 21:13:16 +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 5c4a8c7e73 OPENJPA-70. Added new RemoteCommitEvent payload type and logic to fire RemoteCommitEvents when stale records are detected. This logic still gets fired via afterCommit(), even though these checks can happen either after a commit or a flush is issued. Additionally, these events are only fired against local listeners, so actually represent local analysis that is detecting remote events, rather than remote events themselves.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552059 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 23:08:41 +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
Patrick Linskey f34e22efe4 Added setUp() so that extending types don't need to always create one.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@551844 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 10:52:24 +00:00
Patrick Linskey 49445edc83 OPENJPA-267. Test case for some basic MethodQL behavior.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@551159 13f79535-47bb-0310-9956-ffa450edef68
2007-06-27 13:23:36 +00:00
Patrick Linskey 39f1071085 OPENJPA-262
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@550185 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 09:16:57 +00:00
Marc Prud'hommeaux bd51cad23f Changed checking for javax.xml.bind.annotation.XmlType to use reflection instead of a hard-wired class name so we more gracefully handle cases where JAXB is not available.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@549517 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 15:44:06 +00:00
David J. Wisneski 1921d6cc59 OPENJPA-240 fix JAXB dependency and move XMLValueHandler to openjpa-jdbc-5.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@548860 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 21:53:55 +00:00
David J. Wisneski 8bf89a655a OPENJPA-240, packaging/renaming/JAXB dependency cleanups
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@548834 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 19:44:58 +00:00
Patrick Linskey 9f0a7ff545 OPENJPA-259. Applied Craig's patch (minus the ACK char; maybe Craig meant ^L instead?), and added a test case. The test uses dynamic JPQL, but the parser change should work for XML-based named queries also, and it seems fair to allow newlines in dynamic strings as well.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547872 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 06:54:12 +00:00
David J. Wisneski e0e176ab83 OPENJPA-240 Feature:Persistent field mapping support for XML column type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547837 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 00:09:45 +00:00
David J. Wisneski 1a130afb05 OPENJPA-240 Feature:Persistent field mapping support for XML column type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547832 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 23:45:00 +00:00
Marc Prud'hommeaux 0091bcabe3 Added a 'java14.jar' property that can be used to specify the location of the JDK 1.4 runtime jar, against which we will compile the JDK 1.4-specific modules. This can be used to ensure that JDK 1.5-specific methods and classes don't slip into the JDK 1.4 modules.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@546768 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 07:50:11 +00:00
Patrick Linskey aa3353d34d Reece's test case from OPENJPA-235. I was a bit nervous about the changes to EntityB and EntityC's relationships, but all the existing OpenJPA tests pass, so evidently we did not rely on the particular settings as they were.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@545360 13f79535-47bb-0310-9956-ffa450edef68
2007-06-08 01:18:40 +00:00
Patrick Linskey aea920d171 Improve documentation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@545345 13f79535-47bb-0310-9956-ffa450edef68
2007-06-07 23:23:35 +00:00
Kevin W. Sutter 1ef670d2f6 I'm pretty sure the rollback() test method should be calling rollback() instead of commit()... :-) I found this while attempting some other tests, so I figured I would clean this up before somebody else stumbles across it.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@543503 13f79535-47bb-0310-9956-ffa450edef68
2007-06-01 15:24:32 +00:00
Kevin W. Sutter c634dcb4d8 OPENJPA-248. Modified parseForeignKey to set the appropriate cascade update action.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@543265 13f79535-47bb-0310-9956-ffa450edef68
2007-05-31 21:24:46 +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 f98ecf4d22 OPENJPA-235 Reverted patch since it was causing TCK failur
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@539630 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 23:31:55 +00:00
David J. Wisneski 9eaec94118 OpenJPA 168 testcase
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@537213 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 15:44:13 +00:00
Michael Dick 59bd5b0d3f OPENJPA-51 removing testcases
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536706 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 23:05:16 +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 80671afcbf OPENJPA-235. Reformatted code to meet OpenJPA conventions; widened some type arguments that seemed unnecessarily narrow.
This passes all the OpenJPA tests in my environment, and the logic seems sound. I think that we could adjust the algorithm to require less collection copying, but I don't think that we should hold up the commit for that type of optimization.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535379 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 20:58:49 +00:00
Patrick Linskey 2f07532f22 added clarifying comment to persistence.xml
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535359 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 19:22:50 +00:00
David J. Wisneski d7d400b818 fix build break, class list is removed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535041 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 00:39:55 +00:00
David J. Wisneski bcc3b67223 add query test for OPENJPA-51, queries with subselects with correlated/non-correlated aliases
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535003 13f79535-47bb-0310-9956-ffa450edef68
2007-05-03 22:49:49 +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 a99763cf63 Updated recently-added files to meet Apache's latest header syntax.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532833 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 18:28:18 +00:00
Patrick Linskey 7d7e303f84 OPENJPA-229. Not sure how these didn't get committed in the first commit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532808 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 17:24:40 +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
David J. Wisneski 129360ace9 OPENJPA-222 clean up
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530860 13f79535-47bb-0310-9956-ffa450edef68
2007-04-20 17:24:32 +00:00
David J. Wisneski 0bc9685aa7 OPENJPA 222 fix for test case
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530574 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 22:21:36 +00:00
David J. Wisneski c816683d08 OPENJPA 222 fix for the testcases for DB2
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530563 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 21:58:46 +00:00
David J. Wisneski 0f66458d4c OPENJPA-222 testcases for DB2
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530554 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 21:33:23 +00:00
Michael Dick b0ba394a57 adding license
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@529597 13f79535-47bb-0310-9956-ffa450edef68
2007-04-17 13:38:34 +00:00
Michael Dick 09dad99722 moving derby.log file to target directory
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@529415 13f79535-47bb-0310-9956-ffa450edef68
2007-04-16 21:55:03 +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