Commit Graph

1047 Commits

Author SHA1 Message Date
Pinaki Poddar 9cf12d186b Add error code for SQLServer database
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1161289 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 21:33:48 +00:00
Heath Thomann 3842a3d1a9 OPENJPA-1691: Made update to localizer.properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1160891 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 21:38:37 +00:00
Milosz Tylenda dbf066de8e OPENJPA-867: Use 3-argument version of LOCATE-like SQL function where possible, instead of a trick with SUBSTRING.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1160003 13f79535-47bb-0310-9956-ffa450edef68
2011-08-21 15:34:37 +00:00
Michael Dick 78d8843009 OPENJPA-2040: Default to non-strict MetaData and Mapping Factories when a user provided factory class is set.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1159318 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 17:20:04 +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
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
Michael Dick eb7fb7421f OPENJPA-2038: Add tests for tablename including schema
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1156340 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 19:47:24 +00:00
Heath Thomann 3598a2d8eb OPENJPA-758: Added code to check the ClassResolver to get a class loader when attempting to load a ValueHandler or FieldStrategy.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1155394 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 15:21:06 +00:00
Heath Thomann 529827b0fb OPENJPA-1376: Added property for forward compatibility, documented property and migration considerations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1155358 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 13:30:29 +00:00
Heath Thomann 8a7ef392f3 OPENJPA-1691: Added property for forward compatibility, documented property and migration considerations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1155056 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 18:53:55 +00:00
Michael Dick 9a974626fd OPENJPA-2034: Update error codes for H2 database.
Submitted By: Prashant Bhat

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1149697 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 19:20:57 +00:00
Michael Dick eb4e83fa27 OPENJPA-2000: Update realTypeName for Postgres to match the Postgres manual.
Submitted By: Jacob Nowosatka

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1149387 13f79535-47bb-0310-9956-ffa450edef68
2011-07-21 21:58:24 +00:00
Milosz Tylenda dae5ba7def OPENJPA-487: After simplifying SQL generation for LOCATE function, the function works on Firebird 2.1 (wow!).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1143985 13f79535-47bb-0310-9956-ffa450edef68
2011-07-07 19:15:42 +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 41f09d9226 OPENJPA-2008: Draft support for native SQL in Slice
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1135806 13f79535-47bb-0310-9956-ffa450edef68
2011-06-14 21:33:28 +00:00
Michael Dick b9e61a8923 OPENJPA-2013: Add TEXT to the fixed size type list for Derby and HSQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1133904 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 14:55:25 +00:00
Pinaki Poddar 5cceefda8e OPENJPA-1050: Use generics wherever possible
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1133601 13f79535-47bb-0310-9956-ffa450edef68
2011-06-08 23:36:45 +00:00
Michael Dick 0bcded74e1 OPENJPA-2010: Check line number and source file before logging duplicate meta data warning
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1133546 13f79535-47bb-0310-9956-ffa450edef68
2011-06-08 20:19:03 +00:00
Michael Dick dcf90c68eb OPENJPA-2005: check for unexpected (null) sequence names in PostgresDictionary
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1127898 13f79535-47bb-0310-9956-ffa450edef68
2011-05-26 13:28:00 +00:00
Richard G. Curtis 258cf99784 OPENJPA-1987: Do not use null table for getImportedKeys in Ingres dictionary.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1102784 13f79535-47bb-0310-9956-ffa450edef68
2011-05-13 15:09:23 +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 aa88b32b06 OPENJPA-1725: make old behavior optional
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1101519 13f79535-47bb-0310-9956-ffa450edef68
2011-05-10 16:00:44 +00:00
Michael Dick 1125b86310 OPENJPA-1725: cleanup comments
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1101474 13f79535-47bb-0310-9956-ffa450edef68
2011-05-10 14:32:20 +00:00
Michael Dick c159730005 OPENJPA-1725: Ignore schema when checking the length of a table name
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1101243 13f79535-47bb-0310-9956-ffa450edef68
2011-05-09 22:09:40 +00:00
Michael Dick 849a77b5d3 OPENJPA-1994: Add index to reserved words for MySQLDictionary
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1099899 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 18:01:54 +00:00
Richard G. Curtis f9c5a20200 OPENJPA-1990: Skip calling back to DB2 when an exception is encountered.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1097826 13f79535-47bb-0310-9956-ffa450edef68
2011-04-29 14:54:20 +00:00
Michael Dick b6ddcab383 OPENJPA-1987: do not use null table for getImportedKeys in postgres dictionary
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1097465 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 14:06:41 +00:00
Michael Dick 69fd9dbad9 OPENJPA-1985: Check for abstime as a timestamp type for Postgres
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1097160 13f79535-47bb-0310-9956-ffa450edef68
2011-04-27 16:00:37 +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
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
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
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
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 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
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
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
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
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
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 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
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 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 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