Commit Graph

983 Commits

Author SHA1 Message Date
Fay Wang c14838950c OPENJPA-1330: support join table strategy for uni-directional many-to-one relation and uni-/bi-directional one-to-one relation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820839 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 23:18:56 +00:00
Donald Woods fa02d2a5fa OPENJPA-1229 get rat-maven-plugin passing again, as any file included in the source distribution has to pass rat:check
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820779 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 20:44:24 +00:00
Fay Wang c2a723816b OPENJPA-1330: bi-directional many-to-one/one-to-many using join table strategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820748 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 18:49:05 +00:00
Donald Woods 797de03a10 OPENJPA-1229 Update NOTICE files to match new ASF/Sun agreement for releasing early access specs. Also point to new geronimo-staging-017 to pickup latest spec releases under vote with updated notices.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820684 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 15:19:10 +00:00
Donald Woods 02471ca7e7 OPENJPA-1229 Reworked Persistence.createEMF() exception handling in the geronimo-jpa2 spec api (PFD2), which wraps all exceptions in a PersistenceException and can now return multiple provider exceptions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820440 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 20:49:09 +00:00
Richard G. Curtis c06481b452 OPENJPA-1224. Updated DBDictionary and AbstractDB2Dictionary to properly support java.math.BigDecimal.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820050 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 18:12:15 +00:00
Pinaki Poddar baf800f3b0 OPENJPA-1050: Use generics for BrokerFactory
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819800 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 02:43:32 +00:00
Pinaki Poddar 9f24d10ecd OPENJPA-1050: Use generics for DataCache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819771 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 23:51:33 +00:00
Milosz Tylenda 450f8352f8 OPENJPA-1153: Speed tests up by using only needed entities rather than all entities from persistence.xml
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819658 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 17:37:54 +00:00
Michael Dick 562b4942df OPENJPA-1115:
Setting svn:eol-style native on new files

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819560 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 14:36:49 +00:00
Michael Dick 174f2af0de OPENJPA-1253:
Setting svn:eol-style = native

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819549 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28 14:23:36 +00:00
Fay Wang bb3e1a5185 OPENJPA-1253: check in test case of join table strategy for bi-directional one-to-many using Map with entity as map key
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819163 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 16:17:32 +00:00
Fay Wang 9eeb4b2fbd OPENJPA-1253: check in test case of join table strategy for bi-directional one-to-many using Map with entity as map key
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819162 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 16:16:32 +00:00
Fay Wang 9f29552e85 OPENJPA-1253: support foreign key strategy for uni-directional one to many mapping using Map with entity as the Map key.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819139 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 13:42:19 +00:00
Jeremy Bauer 28573bfcfd OPENJPA-1115 Allow schema-less delimited id tests to fail until intermittent cleanup issue is resolved. Removed duplicate test case and unnecessary em creation in test framework database support methods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819093 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 05:26:35 +00:00
Jeremy Bauer 5f03f77b5c OPENJPA-1115 Fix DB2 failure in schema test. Disable non-schema tests on DB2 until DB2 cleanup related exception is resolved.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819082 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 01:12:53 +00:00
Donald Woods dc3c2c43ed OPENJPA-1116 revert back to CLEAR_TABLES for speed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819012 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 21:15:22 +00:00
Jeremy Bauer cafbd559d2 OPENJPA-1115 Targeted delimited id tests for specific DB platforms based on schema support/usage. Includes test updates contributed by Dianne Richards.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818987 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 20:15:12 +00:00
Jeremy Bauer 22391c9133 OPENJPA-1116: Cleanup via SynchronizeMappings SchemaAction directive
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818960 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 19:17:14 +00:00
Donald Woods eb8abb81fc OPENJPA-1116: try DROP_TABLES
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818909 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 16:23:31 +00:00
Donald Woods a6af0f35e2 OPENJPA-1116: fix test case error on non-Derby DB by adding CLEAR_TABLES
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818891 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 15:53:44 +00:00
Fay Wang ef54e75107 OPENJPA-1253: support bi-directional one-to-many map using join table strategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818616 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 20:26:04 +00:00
Donald Woods d8eadfe600 OPENJPA-1116: fix test case error on some DBs by providing a unique table name.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818518 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 15:34:22 +00:00
Fay Wang 067a6f0ffb OPENJPA-1253: support non-default uni-directional one to many map using foreign key strategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818410 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 09:00:12 +00:00
Fay Wang 65ff86ce24 OPENJPA-1116: fix test case error by providing a unique table name.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818385 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 07:08:35 +00:00
Jeremy Bauer 2a98f2b93d Fix SQL comparison failures in bidi eager tests on Oracle by using standard sql92 join syntax.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818349 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 02:32:38 +00:00
Jeremy Bauer 5d3fd3a726 Update TestEJBQLFunction test to assert empty strings as null for the Oracle DB.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818337 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 01:06:50 +00:00
Donald Woods c5954aa4a5 OPENJPA-1116 Update PU name to reflect the test name
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818215 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23 19:17:06 +00:00
Donald Woods 85a609aa5d OPENJPA-1116 Annotation Strategy not working. Checking in testcases as code patch already committed in r808703 by Pinaki. Patches contributed by Ashish Paliwal.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818212 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23 19:12:07 +00:00
Fay Wang 6f1b9627fe OPENJPA-1253: support non-default bi-directional one-to-many using foreign key strategy to find/query from the ower's side
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817831 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 20:38:36 +00:00
Jeremy Bauer 01c26a9e21 Updated test code to use mapping tool to regenerate subset of DB artifacts if running on Oracle. This will create the triggers required to support generated identity columns.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817815 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 20:15:07 +00:00
Michael Dick f1af41c44c OPENJPA-1298:
Remove WriteBehindCallbackManager which 'shared' a single callback with multiple EMFs unintentionally

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817679 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 14:45:26 +00:00
Fay Wang 19da9769b0 OPENJPA-1253: support non-default uni-directional OneToMany mapping using foreign key strategy.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817399 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 20:21:50 +00:00
Donald Woods 828e08ee0e OPENJPA-1182 Backwards compatibility issues - PreUpdate and PostUpdate behavior. Patch contributed by Tim McConnell with some minor package name and version checking changes. Doc updates by Donald Woods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817389 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 20:01:44 +00:00
Catalina Wei e53f8514f4 OPENJPA-1309 fix testcase for DB2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817382 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 19:23:25 +00:00
Fay Wang 5c23058b0e OPENJPA-1253: support non-default bi-directional one to many using Join Table/Join column annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817131 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 02:13:18 +00:00
Fay Wang cf7f69bbd5 OPENJPA-1253: support non-default One-To-Many mappings
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816795 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 21:53:47 +00:00
Donald Woods 9467818818 OPENJPA-1310 SQLServer requires JAXB marshalled XML to be in UTF-16 instead of UTF-8. Also updated some of the XmlElement names to match the case used in the XmlType annotation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816767 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 20:06:12 +00:00
Catalina Wei 3f43e3dd0e OPENJPA-1309 DB2 requires CAST for argument passed to datastore MOD function
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816737 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 18:38:00 +00:00
Michael Dick 1c0b9849f1 Remove uneeded imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816671 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 15:33:11 +00:00
Jeremy Bauer 95a2c8f680 Fix SQL comparison failures in Criteria query by example tests on Oracle by using standard sql92 join syntax.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816392 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 21:46:56 +00:00
Donald Woods ac23a55b68 OPENJPA-1213 Additional Compatibility tests (patch #2) showing change in query.setParameter() behaviour. Contributed by Tim McConnell, but with some package name and OpenJPAVersion checks added.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816330 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 18:44:29 +00:00
Michael Dick 846d1ef82a OPENJPA-1173:
Revert driver update (not in repo yet).

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816320 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 18:31:10 +00:00
Michael Dick 1318f98bc4 OPENJPA-1173:
Updating postgresql test dependency to v8.4-701
Submitted By: Tim McConnell


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816317 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 18:10:09 +00:00
Donald Woods daadd62bd2 OPENJPA-1213 Use OpenJPAVersion for handling expected test result differences
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816295 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 17:29:01 +00:00
Donald Woods cbe18c2f74 OPENJPA-1213 Compatibility tests showing change in query.setParameter() behaviour. Contributed by Tim McConnell, but with some package name and OpenJPAVersion checks added.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816289 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 17:22:49 +00:00
Donald Woods a94bb8ee06 OPENJPA-1214 moving testcases to the existing compat package
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816187 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 13:44:03 +00:00
Fay Wang 8c1e1a7ea5 OPENJPA-1253: support non-default uni-directional OneToMany using foreign key strategy, using JoinColumn annotation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816085 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 07:49:13 +00:00
Fay Wang 72f2cb8516 OPENJPA-1253: allow JoinColumn in conjunction with OneToMany annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@815988 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 22:13:26 +00:00
Jeremy Bauer 8fc1404dad Modify entity definitions to avoid Oracle reserved words.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@815473 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15 20:38:07 +00:00