Commit Graph

186 Commits

Author SHA1 Message Date
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 d260d34d69 Oops; fixing NPE caused by previous short-circuiting.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563664 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 21:32:06 +00:00
Patrick Linskey fa39addf82 Prevent this class from attempting to build its schema when using a database that doesn't support XML datatypes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563661 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 21:16:55 +00:00
Kevin W. Sutter 9382677eb1 OPENJPA-272. Committing the changes to allow @GeneratedValue to detect and report if initial values and/or setters were called on fields marked with @GeneratedValue. New testcases were also provided.
Also had to update an existing testcase (TestSharedMappedSuperclassIdValue) and associated Entities because it was breaking the contract put in place.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562987 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:34:06 +00:00
Kevin W. Sutter c34fb4e80e OPENJPA-281. Committing the patch that I posted earlier this week. These changes do the proper eager loading of @Basic types. Along with a new testcase and updated AllFieldTypes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562986 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:30:08 +00:00
Kevin W. Sutter 890d16047e Just a couple of new testcases that I used to debug some problems recently. Turned out to be non-issues, but I thought the testcases still might be worthwhile to have in our bucket.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562985 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:20:10 +00:00
Michael Dick a8fc8dfa76 OPENJPA-295 improved testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562244 13f79535-47bb-0310-9956-ffa450edef68
2007-08-02 20:33:18 +00:00
Marc Prud'hommeaux 17ecf6753a Fixed test case to first check to see if any CREATE TABLE statement was issued at all. If not, then the database might already have created the TemporalFieldTypes table, in which case the validation assertions of the temporal column types will fail.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562206 13f79535-47bb-0310-9956-ffa450edef68
2007-08-02 17:58:37 +00:00
Michael Dick a1d28857fa OPENJPA-303 committing on behalf of Albert
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561405 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 17:32:01 +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 0243702b35 OPENJPA-293. Fixed problem with transactional state maintenance that was preventing lifecycle tests from passing.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560601 13f79535-47bb-0310-9956-ffa450edef68
2007-07-28 19:53:13 +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
Patrick Linskey 3ddd88b576 Removed unneeded imports.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559521 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 16:49:44 +00:00
Patrick Linskey dbf7ab273e Simple test case for lifecycle listener support.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559515 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 16:30:59 +00:00
Patrick Linskey b50530274b Simple test case for in-memory remote commit provider.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559503 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 16:04:27 +00:00
Patrick Linskey 092729c11c Test case for selecting enum values into a new managed instance.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559353 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 08:32:38 +00:00
Michael Dick 19dc613dd0 Reset sequencetable for TestTableGenerator
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558815 13f79535-47bb-0310-9956-ffa450edef68
2007-07-23 18:03:04 +00:00
David J. Wisneski a5ed9f701d OPENJPA-240 XMLMapping Query support, fix eol delimiters to unix style
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558221 13f79535-47bb-0310-9956-ffa450edef68
2007-07-21 01:25:48 +00:00
Patrick Linskey e2556dd6b2 Test that @ContainerTable annotation is properly read.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558191 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 23:03:21 +00:00
Patrick Linskey 9ce0bed09d Test that externalization of EnumSets works as expected.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558186 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 22:42:16 +00:00
Michael Dick a5d1acd44e OPENJPA-284 committing on behalf of Teresa
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@558097 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 19:17:19 +00:00
Michael Dick 1c9f0ae0ae OPENJPA-287
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557768 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 20:55:30 +00:00
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