Commit Graph

4035 Commits

Author SHA1 Message Date
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
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
Kevin W. Sutter cf4a80047e OPENJPA-1945. Updating persistence.xml file to be at version 2.0.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1072048 13f79535-47bb-0310-9956-ffa450edef68
2011-02-18 16:30:36 +00:00
Kevin W. Sutter eaad779a33 OPENJPA-1945. Updating configuration files (.properties and .xml) to make the sample easier to use "out of the box", especially for the JSE environment.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1072039 13f79535-47bb-0310-9956-ffa450edef68
2011-02-18 16:19:04 +00:00
Michael Dick bc5e826b45 Remove empty finally block
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1071619 13f79535-47bb-0310-9956-ffa450edef68
2011-02-17 14:32:46 +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 61f686a300 OPENJPA-1940: Use unqualified name when looking for PK columns on Oracle.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1071439 13f79535-47bb-0310-9956-ffa450edef68
2011-02-16 23:17:42 +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
Michael Dick 8e6a7ae331 OPENJPA_1939: increase index name length for DB2 version 9 and later
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1070993 13f79535-47bb-0310-9956-ffa450edef68
2011-02-15 18:14:46 +00:00
Pinaki Poddar b1b503e136 OPENJPA-1050: Generics for extent
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1069984 13f79535-47bb-0310-9956-ffa450edef68
2011-02-11 23:34:15 +00:00
Albert Lee 24f976d619 OPENJPA-1938 Update timeTypeName from DATETIME to DATETIME2 to match the other date/timestamp data type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1069209 13f79535-47bb-0310-9956-ffa450edef68
2011-02-10 03:08:00 +00:00
Michael Dick 3c8d303c9a OPENJPA-1876: add jdbc.DBDictionary prop to profiles for locking tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1068916 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 14:46:29 +00:00
Michael Dick c415857292 OPENJPA-1593: Add OSGi managed runtime.
Submitted By: Wolfgang Glas

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1068588 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 21:28:30 +00:00
Michael Dick af080beed3 OPENJPA-1937: update javadoc for evict methods on OpenJPAEntityManager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1068553 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:26:37 +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
Michael Dick 85a408aca7 restore missing message
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1067989 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 16:02:17 +00:00
Milosz Tylenda cdfb5c79c5 OPENJPA-1932: Sun -> Oracle, update copyright year, make LOB term consistent in case, fix typos.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1067730 13f79535-47bb-0310-9956-ffa450edef68
2011-02-06 19:03:15 +00:00
Kevin W. Sutter 90a95d4ee9 OPENJPA-1213. Updating the documentation for the change in behavior with the Query.setParameter() exception processing (at least our implementation of the interface).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1067185 13f79535-47bb-0310-9956-ffa450edef68
2011-02-04 14:51:26 +00:00
Jeremy Bauer 5c92fc502a Remove extraneous TX commit in test variation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1066316 13f79535-47bb-0310-9956-ffa450edef68
2011-02-02 03:09:56 +00:00
Milosz Tylenda ee92abbdd0 OPENJPA-1932: Update for version 2.2.0, fix link to Building OpenJPA wiki page.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1065358 13f79535-47bb-0310-9956-ffa450edef68
2011-01-30 19:27:21 +00:00
Milosz Tylenda 6dab974ec7 OPENJPA-1932: Update version to 2.2.0, copyright year, drop support for Java SE 5, fix typos.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1065252 13f79535-47bb-0310-9956-ffa450edef68
2011-01-30 11:38:56 +00:00
Pinaki Poddar 84e66b1d84 Add exception message for configuration error
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1063867 13f79535-47bb-0310-9956-ffa450edef68
2011-01-26 20:50:23 +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
Pinaki Poddar d91475d506 Add exception message for configuration error
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1063823 13f79535-47bb-0310-9956-ffa450edef68
2011-01-26 18:43:06 +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
Jeremy Bauer 8695d9f54f Updated messages to use standard double quotes around literals
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1062894 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 17:33:48 +00:00
Pinaki Poddar 212740ea77 Correct JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1061583 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 00:07:50 +00:00
Pinaki Poddar 5d5ac618b9 OPENJPA-1050: use generics for FetchGroup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1061582 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 00:07:20 +00:00