Commit Graph

4363 Commits

Author SHA1 Message Date
Michael Dick d5e20c4a11 OPENJPA-1981: check whether connection is open before calling close
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1092309 13f79535-47bb-0310-9956-ffa450edef68
2011-04-14 14:52:20 +00:00
Milosz Tylenda 7afa8754f7 OPENJPA-1932: Documentation update: Correct outdated links to Javadocs.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1091567 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 20:26:07 +00:00
Michael Dick d20b9a9511 OPENJPA-1934: Cleanup compiler warnings.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1091279 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 03:17:16 +00:00
Michael Dick 8544f5da4a OPENJPA-1975: add testcase for ConnectedConfiguration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1091124 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 16:56:01 +00:00
Milosz Tylenda 82c79adab1 OPENJPA-1932: Documentation update: Correct broken and outdated links.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1090746 13f79535-47bb-0310-9956-ffa450edef68
2011-04-10 07:51:33 +00:00
Milosz Tylenda 8c68768917 OPENJPA-1932: Documentation update: remove Java 5 references, improve formatting and wording, point out that getSupportedProperties is an OpenJPA extension (no longer in the JPA 2.0 spec), remove link to criteria API draft (criteria API is in the final 2.0 spec).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1090649 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 19:02:33 +00:00
Michael Dick e35178f645 OPENJPA-1934: Add a maven plugin for PCEnhancement.
Submitted By: Mark Struberg, Rahul Thankar

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1090086 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 01:59:02 +00:00
Michael Dick 985a59afbd OPENJPA-1975: Move default schema name code to its own method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1090025 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 21:28:32 +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
Milosz Tylenda d470141828 OPENJPA-1932: Documentation update: Add missing example titles, fix typos.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1088391 13f79535-47bb-0310-9956-ffa450edef68
2011-04-03 19:58:03 +00:00
Albert Lee 03d4f2f8b6 OPENJPA-1972 Update test and adapt to DB2 9.7 behavior changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1087429 13f79535-47bb-0310-9956-ffa450edef68
2011-03-31 20:13:17 +00:00
Albert Lee 20b66ce0df OPENJPA-1969 Document "Known Issues.." on DataDirect limitation on precision loss during prepared statement setTimestamp method call.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1087074 13f79535-47bb-0310-9956-ffa450edef68
2011-03-30 21:09:37 +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
Albert Lee fd197214a9 OPENJPA-1969 - Decode HYT00 to LockTimeoutException
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1087028 13f79535-47bb-0310-9956-ffa450edef68
2011-03-30 17:58:32 +00:00
Milosz Tylenda 1f139e4013 OPENJPA-1932: Documentation update: remove Java 5 references (OpenJPA requires Java 6), remove sjvm setting from examples (no longer needed), improve formatting (we should remember to use literal/classname tags), fix typos.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1086719 13f79535-47bb-0310-9956-ffa450edef68
2011-03-29 20:19:30 +00:00
Albert Lee f10e349f7c OPENJPA-1968 Set DATETIME2 based on db version and also set the correct date_precision for DATETIME2 type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1086639 13f79535-47bb-0310-9956-ffa450edef68
2011-03-29 16:38:59 +00:00
Milosz Tylenda 59c9ec99af OPENJPA-1932: Documentation update: remove non-existing oracle option from savepoint managers, fix typos, improve letter case.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1086408 13f79535-47bb-0310-9956-ffa450edef68
2011-03-28 21:24:30 +00:00
Pinaki Poddar f1c1c78787 OPENJPA-1662: Save a runtime typecast.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084944 13f79535-47bb-0310-9956-ffa450edef68
2011-03-24 13:14:33 +00:00
Richard G. Curtis 9b5fa5152a OPENJPA-1960: Allow openjpa.InitializeEagerly to be used with BV.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084349 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 20:50:21 +00:00
Kevin W. Sutter 8464dc4d1d Another minor comment update in the ImageValidator sample...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084294 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 18:46:49 +00:00
Richard G. Curtis 056e9d8720 Update svn:ignore props for openjpa-jest.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1084281 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 18:25:48 +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 f6e05d0852 OPENJPA-1932: Documentation update - copyright year and version, wording corrections.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1083273 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 20:03:53 +00:00
Milosz Tylenda 0b72fb417a OPENJPA-478: Get rid of contradictory text about HAVING without GROUP BY in user guide.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1083258 13f79535-47bb-0310-9956-ffa450edef68
2011-03-19 19:36:05 +00:00
Jeremy Bauer 0971bd301c OPENJPA-1787 Fixed VLEM hasUpdateListeners & hasPersistListeners methods and added additional validation test cases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1082259 13f79535-47bb-0310-9956-ffa450edef68
2011-03-16 18:48:11 +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 d3d944ccd2 OPENJPA-1959: make runtime exception translator transient
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1080978 13f79535-47bb-0310-9956-ffa450edef68
2011-03-12 19:05:55 +00:00
Michael Dick 7d0de515a5 use generics, remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1080955 13f79535-47bb-0310-9956-ffa450edef68
2011-03-12 17:38:43 +00:00
Michael Dick c87edf8049 OPENJPA-1958: handle index out of bounds condition.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1080948 13f79535-47bb-0310-9956-ffa450edef68
2011-03-12 17:04:36 +00:00
Michael Dick 6309bff2f0 OPENJPA-1787: setting eol-style (nit)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1080789 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 23:09:21 +00:00
Jeremy Bauer 6fdcebd673 OPENJPA-1787 Updated "new entity" merge path through AttachManager and BrokerImpl to refrain from firing a pre-persist event before the state of the merged entity is copied to the new entity. Test cases based upon code provided by Oliver Ringel.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1080751 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 20:29:50 +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
Milosz Tylenda 0022b991ab OPENJPA-1376: Correctly handle the case when sequence increment is > 1.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1078811 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 15:30:25 +00:00
Milosz Tylenda 1d889e3e50 OPENJPA-1376: Documentation update related to allocationSize property of @SequenceGenerator.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1078777 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 14:02:33 +00:00
Milosz Tylenda 2e0d69141f OPENJPA-1376: Documentation update - add migration section on allocationSize property of @SequenceGenerator.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1078761 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 12:33: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 2027274a07 increase timeout for tck
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1077976 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 14:45: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
Milosz Tylenda e0a0050e7b OPENJPA-1376: Cache values of @SequenceGenerator as specified by allocationSize parameter instead of setting CACHE on database sequence. Idea submitted by Palmer Cox.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1075026 13f79535-47bb-0310-9956-ffa450edef68
2011-02-27 11:15:55 +00:00
Michael Dick 25b4e87195 OPENJPA-1952: Excluding multithreaded test which causes intermittent build failures
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1074579 13f79535-47bb-0310-9956-ffa450edef68
2011-02-25 15:33:16 +00:00
Albert Lee e3be88bf7e Fix test cases running in DB2 due to 1) dict.forUpdateClause must be obtained after emf is created because specific dictionary may override the value of this attribute, 2) The forUpdateClause in DB2 is LockMode type dependent, (i.e. WITH RR/RS) therefore can not depends on this attribute for positive test case comparison, negative test ok.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1073542 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 23:15:01 +00:00
Kevin W. Sutter 78198b67e7 OPENJPA-1945. Okay, we're going to try this again. This time with Pinaki's approval (previous comment in JIRA). Removing "Copyright 2010 Pinaki Poddar" statements from the OpenBooks sample code.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1073452 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 18:48:06 +00:00
Kevin W. Sutter 3261c1f185 OPENJPA-1945. Oops. According to this url [1], only the owner of the Copyright is allowed to remove them from the source code and put them into the appropriate Notices file. I have sent an e-mail to Pinaki explaining my faux pas and asking him to follow up on the process.
[1]  http://www.apache.org/legal/src-headers.html#header-existingcopyright


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1073379 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 16:14:18 +00:00
Kevin W. Sutter 3d5e01bb1e OPENJPA-1945. Removing "Copyright 2010 Pinaki Poddar" statements from the OpenBooks sample code.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1073360 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 15:11:31 +00:00
Michael Dick 4aed0be581 Add constant - findbugs reported
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1073212 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 03:17:35 +00:00
Michael Dick 91ef7813d1 OPENJPA-1555: Remove boilerplate code
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1073211 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 03:15:07 +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