Commit Graph

1560 Commits

Author SHA1 Message Date
Pinaki Poddar 3cfadba263 Relocate org.apache.openjpa.jdbc.kernel.MixedLockManager configuration to JDBC product derivation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1161288 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 21:32:22 +00:00
Richard G. Curtis ea499a8ed6 OPENJPA-2039: Update javadoc and minor formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1158364 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 16:39:40 +00:00
Richard G. Curtis e032624813 OPENJPA-2039: Update configuration properties.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1158027 13f79535-47bb-0310-9956-ffa450edef68
2011-08-15 21:54:40 +00:00
Michael Dick 27a7e91688 Add order by to query. Testcase was failing on DB2 and Oracle
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1157928 13f79535-47bb-0310-9956-ffa450edef68
2011-08-15 17:56:29 +00:00
Richard G. Curtis 42099529a2 OPENJPA-2039: Select FKs for fields that are in the DFG, but not in active fetchplan.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1157903 13f79535-47bb-0310-9956-ffa450edef68
2011-08-15 16:36:07 +00:00
Richard G. Curtis 6439d3ebdf OPENJPA-2029: Fix Entity compile bug.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1153176 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 16:07:52 +00:00
Richard G. Curtis 692b0cc7fa OPENJPA-2029: Add additional tests for query named to positional parameter conversion. Patch contributed by Jacob Nowosatka.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1153150 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 14:46:51 +00:00
Michael Dick 928aa703cb OPENJPA-2027: Use SingularAttribute for unannotated arrays. ListAttribute for @PersistentCollections
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1143519 13f79535-47bb-0310-9956-ffa450edef68
2011-07-06 18:17:36 +00:00
Milosz Tylenda 8a85ffb402 OPENJPA-487: Simplify generated SQL for SUBSTRING and LOCATE JPQL functions by switching from JDO style to JPA style in expressions. SUBSTRING parameters are still inlined to support grouping by SUBSTRING.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1142426 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 12:32:03 +00:00
Pinaki Poddar 31c0249e14 OPENJPA-2017: Adding DEATCH.NONE option. Retry commit after local test run
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1141556 13f79535-47bb-0310-9956-ffa450edef68
2011-06-30 14:54:31 +00:00
Michael Dick 3a2d50e011 OPENJPA-1768: Check whether the broker is already loading before recursively loading an entity from datacache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1140315 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 20:59:01 +00:00
Richard G. Curtis 053d81db95 OPENJPA-1803: Add support for obtaining a connection via EntityManager.unwrap. Patch contributed by Sebastian Laskawiec.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1138059 13f79535-47bb-0310-9956-ffa450edef68
2011-06-21 15:46:46 +00:00
Michael Dick f0fbbaa26a OPENJPA-2017: Changes cause test failures in openjpa-lib. Reverting for now.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1137645 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 14:54:58 +00:00
Pinaki Poddar db960fbeae OPENJPA-2017: Introduce AutoDetach.NONE option to improve batch insert operation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1135857 13f79535-47bb-0310-9956-ffa450edef68
2011-06-14 23:51:18 +00:00
Michael Dick a7778ff6a9 Use clear tables with TestOrderColumn
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1135600 13f79535-47bb-0310-9956-ffa450edef68
2011-06-14 14:24:41 +00:00
Michael Dick be88506438 Add order by clause for TestOrderColumn which was failing on Sybase. Also cleaned up asserts and removed DROP_TABLES
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1135273 13f79535-47bb-0310-9956-ffa450edef68
2011-06-13 20:50:24 +00:00
Richard G. Curtis cc3c3eb055 OPENJPA-2014: Allow proxies to stay in place when using LiteAutoDetach.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1134726 13f79535-47bb-0310-9956-ffa450edef68
2011-06-11 19:00:01 +00:00
Heath Thomann cabf34a6fd OPENJPA-1999: Optional support for non-sequential positional parameters - used Rick's provided patch for trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1134128 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 23:16:09 +00:00
Jeremy Bauer b6f39e246d OPENJPA-2007 Replace mistakenly removed assertion
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1128008 13f79535-47bb-0310-9956-ffa450edef68
2011-05-26 17:57:27 +00:00
Jeremy Bauer 50bfa5d261 OPENJPA-2007 jUnit for fetch plan isolation query hint validation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1128005 13f79535-47bb-0310-9956-ffa450edef68
2011-05-26 17:52:23 +00:00
Jeremy Bauer 7b0d1140ac OPENJPA-2007 Updated supported hint set to include correct name for fetch plan level isolation hint.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1127690 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 21:26:26 +00:00
Jeremy Bauer 81c46c503f OPENJPA-2006 If flushing, also pre-flush non-provisional entities to allow sequence ID population.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1127573 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 16:11:47 +00:00
Richard G. Curtis 862e818e50 OPENJPA-1989: Flip FeildMetaData.DefaultFetchGroupExplicit flag when parsing ToOne xml relationships.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1101951 13f79535-47bb-0310-9956-ffa450edef68
2011-05-11 16:19:04 +00:00
Michael Dick 1148ba809d OPENJPA-1995: detect mixed parameter types in JPQL query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1101289 13f79535-47bb-0310-9956-ffa450edef68
2011-05-10 02:42:30 +00:00
Michael Dick 26aa776627 OPENJPA-1992: Throw exception if a JPQL query is missing the first positional parameter
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1100787 13f79535-47bb-0310-9956-ffa450edef68
2011-05-08 18:39:07 +00:00
Michael Dick c00af8d5e8 Remove @AllowFailure in passing testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1099900 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 18:02:18 +00:00
Richard G. Curtis fb91730361 Fix test.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1097536 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 16:30:11 +00:00
Richard G. Curtis d450910b0a OPENJPA-1989: Fix *ToOne xml fetch attribute to honor LAZY.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1097517 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 16:00:58 +00:00
Richard G. Curtis 1b8ce008b2 OPENJPA-1986: Avoid querying the db when cascading a persist to a new instance.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1097209 13f79535-47bb-0310-9956-ffa450edef68
2011-04-27 19:16:36 +00:00
Michael Dick 76552a11fd remove casts for broker factory aliases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1096876 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 19:54:27 +00:00
Richard G. Curtis 045818b05d OPENJPA-1983: Change test Entities to work on Oracle.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1095805 13f79535-47bb-0310-9956-ffa450edef68
2011-04-21 20:21:35 +00:00
Richard G. Curtis 354eb3078e OPENJPA-1983: Don't cascade to an unloaded field when merge is called on a managed Entity.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1095401 13f79535-47bb-0310-9956-ffa450edef68
2011-04-20 13:27:56 +00:00
Richard G. Curtis 2d232cf4c0 OPENJPA-1974: Fix StackOverflow in SelectImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1089124 13f79535-47bb-0310-9956-ffa450edef68
2011-04-05 16:35:56 +00:00
Jeremy Bauer e6b590d73d OPENJPA-1966 Updated attach strategies to query attach cache before going to the broker for entity references. Prevents merging in a detached entity that is being used for field attachment.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1087054 13f79535-47bb-0310-9956-ffa450edef68
2011-03-30 19:32:41 +00:00
Richard G. Curtis 7eb317e488 OPENJPA-1928: Fix @Factory method resolution when name is ambiguous. Patch contributed by Edward Sargisson.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084280 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 18:23:28 +00:00
Richard G. Curtis 2cfb4f6232 OPENJPA-1944: Properly handle a null version field.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084265 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 17:41:58 +00:00
Milosz Tylenda 621c52065e OPENJPA-1376: Add a test for new allocationSize behavior, make test take advantage of setTestsDisabled method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1081067 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 09:54:15 +00:00
Michael Dick 2dbbe70692 OPENJPA-1957: treat non element collection like normal serializable types
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1079978 13f79535-47bb-0310-9956-ffa450edef68
2011-03-09 20:32:59 +00:00
Michael Dick 1cfbf9d171 increase retries and sleep time for intermittently failing testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1077978 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 14:48:39 +00:00
Michael Dick e6421a4118 OPENJPA-1954: add license header
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1076388 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 21:20:11 +00:00
Richard G. Curtis 887f8977ed OPENJPA-1954: Fix ArrayIndexOutOfBoundsException when querying on a version field that is in a MappedSuperclass.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1076370 13f79535-47bb-0310-9956-ffa450edef68
2011-03-02 20:57:03 +00:00
Michael Dick c54b8ca823 OPENJPA-1944: Version defaults to 1 if the column returns null from the database
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1073201 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 02:06:11 +00:00
Michael Dick b44614d94b OPENJPA-1939: Increase index length for DB2 and testcase workaround for OPENJPA-1948
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1073042 13f79535-47bb-0310-9956-ffa450edef68
2011-02-21 16:06:05 +00:00
Milosz Tylenda 5498030392 OPENJPA-1935: Add missing jdbc.DBDictionary property to test-ids-informix profile.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1072295 13f79535-47bb-0310-9956-ffa450edef68
2011-02-19 10:16:49 +00:00
Albert Lee 0c37fc6e57 OPENJPA-1943 - Apply query timeout value to pessimistic row lock statement execution.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1072061 13f79535-47bb-0310-9956-ffa450edef68
2011-02-18 16:59:16 +00:00
Michael Dick a048ba1faa clean deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1071443 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 23:35:40 +00:00
Michael Dick 891ccc625c OPENJPA-1912: Generate externalizable methods correctly for super and subclasses.
Submitted By: Mark Struberg

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1071123 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 02:12:28 +00:00
Jeremy Bauer d1ec54c691 OPENJPA-1935 Updated Informix dictionary to examine nested SQL exceptions when determining whether a generic exception is a lock exception. Added Informix JDBC profile to jdbc and locking poms.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1068472 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 16:42:22 +00:00
Richard G. Curtis cc1dcd9a4c OPENJPA-1847: Fix NPE in SchemaGenerator and formatting.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1063827 13f79535-47bb-0310-9956-ffa450edef68
2011-01-26 18:54:54 +00:00
Milosz Tylenda 987513f7ac OPENJPA-1876: Tests speed-up - do not shut Derby down at the end of each test.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1062964 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 20:43:57 +00:00