Commit Graph

1170 Commits

Author SHA1 Message Date
Albert Lee afef47f798 OPENJPA-2104 Get the proper/indirect value from BindParameter.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1227406 13f79535-47bb-0310-9956-ffa450edef68
2012-01-04 23:57:34 +00:00
Kevin W. Sutter 9cc9b97c97 OPENJPA-2087. Adding "missing" methods on the concrete JDBC classes to allow building with Java 7. Committing this change on behalf of Jacob Nowosatka.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1226933 13f79535-47bb-0310-9956-ffa450edef68
2012-01-03 20:04:38 +00:00
Pinaki Poddar da004e608e OPENJPA:2099: Separate bind parameter and select construction logic
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1225592 13f79535-47bb-0310-9956-ffa450edef68
2011-12-29 16:54:10 +00:00
Pinaki Poddar db415aa984 OPENJPA:2099: rollback revision 1225299
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1225348 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 21:36:25 +00:00
Pinaki Poddar fab4535961 OPENJPA-2099: make use of generic types
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1225299 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 19:05:52 +00:00
Pinaki Poddar 14d8109f95 OPENJPA-2099: Restore getColumns() method
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1224782 13f79535-47bb-0310-9956-ffa450edef68
2011-12-26 18:08:35 +00:00
Pinaki Poddar ffd2a7bfed OPENJPA-2099: Introduce bind parameter. Remove direct string appending to Select
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1222853 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 21:13:35 +00:00
Pinaki Poddar e4a94c6cf8 OPENJPA-2099: Introduce bind parameter. Remove direct string appending to Select
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1222818 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 19:55:46 +00:00
Kevin W. Sutter 12e33c9af3 OPENJPA-2087. Removing the use of the ConcreteClassGenerator. Committing this change on behalf of Jacob Nowosatka.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1214975 13f79535-47bb-0310-9956-ffa450edef68
2011-12-15 22:28:29 +00:00
Richard G. Curtis e24439984b OPENJPA-2068: Optimized calendar creation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1212503 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 16:30:58 +00:00
Michael Dick 9305834478 Undo mainline changes from previous commit
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1212229 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 02:40:31 +00:00
Michael Dick 6595f3125e Adding OpenJPA patch tool
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1212228 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 02:36:41 +00:00
Albert Lee b66ea198ae OPENJPA-2069 Tolerate concurrent sequence alternation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1201383 13f79535-47bb-0310-9956-ffa450edef68
2011-11-13 01:25:18 +00:00
Albert Lee f70dd22afb OPENJPA-2073 Tolerate conf exception for no data source configuration so that live db2 connection is not required for MappingTool invocation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1200919 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 15:33:58 +00:00
Albert Lee 5fafa802aa OPENJPA-2069 Update db sequence's INCREMENT BY value to match the allocationSize specified in @SequenceGenerator
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1199921 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 19:12:34 +00:00
Richard G. Curtis 3d5b44956d OPENJPA-2057: Reverting previous commits.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1197994 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 17:17:26 +00:00
Pinaki Poddar 3494fab794 OPENJPA-2057: Change classloading scheme
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1190716 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 00:44:11 +00:00
Ravi Prakash Palacherla 201701459a OPENJPA-2066 Edge case in OPENJPA-1227. openJPA fails to create a join and thus returns wrong data when a collection is selected from superclass and another field is selected from subclass two or more levels down the hierarchy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1189858 13f79535-47bb-0310-9956-ffa450edef68
2011-10-27 16:42:11 +00:00
Milosz Tylenda b5859a740b OPENJPA-2056: Use single backslash in searchStringEscape on PostgreSQL 9.1 and later.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1180585 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 11:11:58 +00:00
Pinaki Poddar 4a005fe340 useful error message for connection establishment problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1178636 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 23:27:44 +00:00
Pinaki Poddar accc2e01fb useful error message for connection establishment problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1178635 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 23:24:20 +00:00
Michael Dick 2c80991f6a OPENJPA-2045: Remove NAME from default list of reserved words. Add it explicitly for FoxPro, Access, Pointbase and Informix.
Submitted by Jacob Nowosatka

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1170873 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 22:37:19 +00:00
Pinaki Poddar e0568bde7d Reduce log message verbosity
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1164520 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 13:08:33 +00:00
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
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
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
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 28a0c0da86 OPENJPA-1923: Remove restriction to enclose collection-valued query parameter in parentheses. The commit ran tests locally and partially as my TeamCity agent is broken.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1060094 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 21:15:29 +00:00
Richard G. Curtis 0549627bd2 OPENJPA-1917: Cache column alias.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1055524 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 16:58:33 +00:00
Jeremy Bauer aedc8d9dd0 OPENJPA-1907 Use java.util.Date to java.sql.Date type mapping with DB2 on z/OS when column information is not available.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1050137 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 20:09:08 +00:00
Milosz Tylenda dcaf2a41f1 OPENJPA-1863: Update HSQLDictionary for HSQLDB 2.0 - new SQL state value, fix getSequencesSQL method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1044821 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 13:53:52 +00:00
Pinaki Poddar ccc81f0ab8 OPENJPA-1903: Parameter substitution for complex identity
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1043221 13f79535-47bb-0310-9956-ffa450edef68
2010-12-07 22:42:16 +00:00
Michael Dick 502e997b9c OPENJPA-1902: add all reserved words to invalidColumnWordSet for SQLServer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1040702 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 19:03:10 +00:00
Fay Wang 2ef2640092 OPENJPA-1893: The test case exposes a reserved-word column name problem for Oracle and Sybase with SchemaAction='drop,add'
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1040350 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 00:02:46 +00:00
Michael Dick f56cba9777 fixing compiler warnings and minor code reformatting for QueryResultMapping
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1040332 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 22:57:25 +00:00
Milosz Tylenda 685ddfecc6 OPENJPA-1863: Update HSQLDictionary for HSQLDB 2.0 - pagination and schema support.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1039879 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 13:18:41 +00:00
Albert Lee 2700d1681d OPENJPA-1895 add doPriv to setAccessible call.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1039414 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 15:27:56 +00:00
Michael Dick a0907bfc3f OPENJPA-1897: Add all reserved words to invalid column name set
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1038214 13f79535-47bb-0310-9956-ffa450edef68
2010-11-23 17:29:32 +00:00
Richard G. Curtis 06f8dc4c96 OPENJPA-1895: Minor performance improvement.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1037873 13f79535-47bb-0310-9956-ffa450edef68
2010-11-22 20:44:49 +00:00
Fay Wang 7178dd3f00 OPENJPA-1894: reduce the number of Strings created by SelectImpl.getTableIndex
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1037819 13f79535-47bb-0310-9956-ffa450edef68
2010-11-22 18:23:34 +00:00
Milosz Tylenda d748e46040 OPENJPA-1863: Update HSQLDictionary for HSQLDB 2.0 - patch provided by Georgi Naplatanov with slight modifications.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1034728 13f79535-47bb-0310-9956-ffa450edef68
2010-11-13 10:56:47 +00:00
Fay Wang 0836fba158 OPENJPA-1762: lock join table when pessimistic scope is set to EXTENDED
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1032686 13f79535-47bb-0310-9956-ffa450edef68
2010-11-08 20:10:45 +00:00
Michael Dick 3c52abb73d OPENJPA-1877: Detect XMLType column for Oracle and treat as XML
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1032646 13f79535-47bb-0310-9956-ffa450edef68
2010-11-08 17:33:41 +00:00
Milosz Tylenda 0175a1a2e5 OPENJPA-1864: Fix the class comment.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1032321 13f79535-47bb-0310-9956-ffa450edef68
2010-11-07 17:28:54 +00:00
Fay Wang 4b19d0fa4a OPENJPA-1762: lock join table when extended pessimistic scope is used
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1032116 13f79535-47bb-0310-9956-ffa450edef68
2010-11-06 17:24:17 +00:00
Michael Dick 6d423c5b6b OPENJPA-1874: handle Oracle XMLType columns with @Lob annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1031648 13f79535-47bb-0310-9956-ffa450edef68
2010-11-05 15:57:26 +00:00
Michael Dick f946f8383b OPENJPA-1870: Check if columnDefinition was provided before overriding blob type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1031109 13f79535-47bb-0310-9956-ffa450edef68
2010-11-04 17:58:00 +00:00
Michael Dick 24e547cdcb OPENJPA-1864: Add db dictionary for MaxDB & alias in JDBCConfImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030579 13f79535-47bb-0310-9956-ffa450edef68
2010-11-03 18:07:07 +00:00
Richard G. Curtis 2f6baf7119 OPENJPA-1851: Backing changes out of trunk while we continue to develop this feature in a sandbox.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030479 13f79535-47bb-0310-9956-ffa450edef68
2010-11-03 14:51:28 +00:00
Donald Woods eb2bf2acce OPENJPA-1759 Use new DATETIME2 type in MSSQL2008 for new tables with DATE or TIMESTAMP columns, but 3.0 driver still doesn't handle 2.0 created tables with DATETIME columns....
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030235 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 21:28:23 +00:00
Donald Woods 3b3063899b OPENJPA-1764 protect against java.lang.NoClassDefFoundError when being used in an app server but as app managed and the JVM exits quickly from under us
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030183 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 19:16:21 +00:00
Richard G. Curtis aa9573698b OPENJPA-1868: Fix checkstyle failure.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030178 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 19:03:22 +00:00
Richard G. Curtis be92a72ad7 OPENJPA-1868: Miscellaneous FindBugs suggested performance improvements for openjpa-jdbc.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1030156 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 18:24:12 +00:00
Pinaki Poddar c325e704eb OPENJPA-1821: Defensive thread guard on reparametrization.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028488 13f79535-47bb-0310-9956-ffa450edef68
2010-10-28 21:25:14 +00:00
Pinaki Poddar 81e1f23a13 OPENJPA-1851: change to more appropriate variable name
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028466 13f79535-47bb-0310-9956-ffa450edef68
2010-10-28 20:43:35 +00:00
Pinaki Poddar 54234f6102 OPENJPA-1845: Detect query using IN expression with parameters and exclude from query cache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028393 13f79535-47bb-0310-9956-ffa450edef68
2010-10-28 17:18:09 +00:00
Fay Wang c3c97f7cf3 OPENJPA-1857: fix the exception to be thrown by OpenJPA when wrong JoinColumn annotation is specified.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028095 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 20:55:00 +00:00
Richard G. Curtis 6a12a3c121 OPENJPA-1312: Fix equals method name.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1028046 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 17:21:15 +00:00
Donald Woods 06c1e74358 OPENJPA-1313 Incorrect hashcode()/equals() implementation(s) in RowManagerImpl. Patch contributed by Heath Thomann.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1027977 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 14:37:42 +00:00
Donald Woods ce416a8777 OPENJPA-1312 Incorrect hashcode()/equals() implementation(s) in SelectImpl. Patch contributed by Heath Thomann.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1027976 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 14:31:24 +00:00
Donald Woods 582e91b867 OPENJPA-1793 @EmbeddedId class having only one field java.sql.Data. Contributed by Heath Thomann.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1027722 13f79535-47bb-0310-9956-ffa450edef68
2010-10-26 20:14:15 +00:00
Jeremy Bauer c9bad3efcd OPENJPA-1853 Modified DB2Dictionary to disable auto retrieval of generated keys on iSeries V5R4 and earlier.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1027250 13f79535-47bb-0310-9956-ffa450edef68
2010-10-25 20:03:01 +00:00
Michael Dick d54088a365 OPENJPA-1847: Use one connection to create schema objects.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1026183 13f79535-47bb-0310-9956-ffa450edef68
2010-10-22 00:09:57 +00:00
Michael Dick 005a18a739 OPENJPA-1841: Use length() function to determine BLOB/CLOB nullity for Oracle.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1024340 13f79535-47bb-0310-9956-ffa450edef68
2010-10-19 17:57:04 +00:00
Fay Wang 75bbc90899 OPENJPA-1837: fix the MaxEmbeddedLobFieldStrategy when there is limitation of max lob size and when the field is in an embeddable which is contained in an element collection.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1024306 13f79535-47bb-0310-9956-ffa450edef68
2010-10-19 16:14:51 +00:00
Michael Dick 4e3f42e70e OPENJPA-1841: Allow DBDictionary to override IS NULL / IS NOT NULL clause for specific column types.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1024039 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 22:07:41 +00:00
Albert Lee fdf58d63ba OPENJPA-1837 - reset Oracle dictionary maxEmbedded*lobSize = -1 for jdbc driver (11.2.0.x) that can handle *lob size > 4000 characters.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1023925 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 17:48:30 +00:00
Catalina Wei 60e88f82fa OPENJPA-1828: Query with expression IN (collection_valued_input_parameter) gives wrong result when executed the second time
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1023914 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 17:30:48 +00:00
Michael Dick f9cfbbfe2c OPENJPA-1840: handle query timeouts with Sybase - SQLState JZ006:JZ0TO
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1023838 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 15:11:30 +00:00
Michael Dick d99e1dff36 OPENJPA-1838: allow FKs to be added when using Sybase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1023351 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16 18:52:21 +00:00
Michael Dick 2e11a6a90b OPENJPA-1835: add dummy as an invalid column name for Sybase and update testcase to use DBIdentifier to get column name.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1022960 13f79535-47bb-0310-9956-ffa450edef68
2010-10-15 15:00:30 +00:00
Michael Dick 2df8af7457 OPENJPA-1832: numeric is not fixed size.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1022583 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14 15:36:27 +00:00
Donald Woods 5a7b1765c7 close DriverDataSource when we're done with it
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1022190 13f79535-47bb-0310-9956-ffa450edef68
2010-10-13 17:04:57 +00:00
Donald Woods be183a3a94 OPENJPA-1831 DataSourceFactory manipulates queryTimeout which is already in milliseconds
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1021891 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12 19:23:12 +00:00
Donald Woods 0bcdb27e8f OPENJPA-1818 Exclude 'order' as valid column name.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1021875 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12 18:31:13 +00:00
Michael Dick abf397a513 Add Sybase SQLState for EntityExistsException
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1021520 13f79535-47bb-0310-9956-ffa450edef68
2010-10-11 21:44:50 +00:00
Donald Woods b229fbd13e OPENJPA-1764 Minor cleanup for static variables and exception messages
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1021489 13f79535-47bb-0310-9956-ffa450edef68
2010-10-11 20:03:18 +00:00
Michael Dick ea0a44edd3 Filter connection setup SQL from SybaseDictionary.decorate when running unit tests.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1006010 13f79535-47bb-0310-9956-ffa450edef68
2010-10-08 20:32:21 +00:00
Milosz Tylenda 5a98879567 OPENJPA-1691: Support XML strings longer than 4000 bytes on Oracle.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1004043 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 20:46:38 +00:00
Fay Wang a4080f46f5 OPENJPA-1819: if there is a group-by clause, orderby_item must be in the group-by list
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1003317 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30 22:07:11 +00:00
Donald Woods c7a08227a3 OPENJPA-1764 Need to explicitly close dbcp.BasicDataSource instances, moved commons-dbcp test depend to parent pom and added closing of EMF in ContainerTest during test tearDown.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1002860 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29 21:43:11 +00:00
Donald Woods 4aa5b43825 OPENJPA-1764 Fix bug in DBCPDriverDataSource.mergeConnectionProperties, move common surefire-plugin systemProperties to parent pom and move the connection user/password to equivalent openjpa.Connection settings
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1002745 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29 17:12:49 +00:00
Donald Woods ed85f020fd OPENJPA-1764 Automatically enable connection pooling in unmanaged environments when Commons DBCP is available
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1002321 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28 18:56:51 +00:00
Jeremy Bauer 9b105a2f00 OPENJPA-1809 Modified syncVersion exception path to pass the lock level into the exception producer. This eventually allows the exception translator to correctly decide whether the exception was the result of a lock timeout.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@999559 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 19:27:08 +00:00
Michael Dick c1b941f3d1 OPENJPA-1800: revert trailing whitespace variable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@997890 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16 19:44:37 +00:00
Michael Dick a093e9daa6 OPENJPA-1800: prevent duplicate column in SybaseDictionary.getCreateTableSQL()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@997889 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16 19:37:20 +00:00
Catalina Wei c110e0d28a OPENJPA-1798: Improve messages in localizer.properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@997373 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 15:52:34 +00:00
Michael Dick 208347e88d OPENJPA-1788: use DBIdentifier.isNull for firebird dictionary
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@996000 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 22:11:19 +00:00
Fay Wang 35205c46ac OPENJPA-1784: clean up fix
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@995596 13f79535-47bb-0310-9956-ffa450edef68
2010-09-09 22:35:19 +00:00
Fay Wang 9c25bd1633 OPENJPA-1784: improve dirty-checking for persistent maps when the get method is called to retrieve an embeddable value.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@995333 13f79535-47bb-0310-9956-ffa450edef68
2010-09-09 06:47:46 +00:00
Milosz Tylenda da688116d5 OPENJPA-735: Fix spelling in method name and comments.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@990085 13f79535-47bb-0310-9956-ffa450edef68
2010-08-27 10:22:45 +00:00
Fay Wang f0f3a4c588 OPENJPA-735: OpenJPA support for SolidDB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@988164 13f79535-47bb-0310-9956-ffa450edef68
2010-08-23 16:01:45 +00:00
Catalina Wei 833520766f OPENJPA-526: Insert text more than 4K bytes to Clob column causes SQLException: Exhausted Resultset
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@987598 13f79535-47bb-0310-9956-ffa450edef68
2010-08-20 18:32:21 +00:00
Jeremy Bauer 696786e93e Added missing continuation character to message
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@987556 13f79535-47bb-0310-9956-ffa450edef68
2010-08-20 15:49:54 +00:00
Fay Wang 3a62393e06 OPENJPA-735: OpenJPA support for SolidDB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@987289 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 20:09:45 +00:00
Fay Wang 07d599a02d OPENJPA-735: OpenJPA support for SolidDB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@987013 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 04:19:39 +00:00
Pinaki Poddar a7bd0831cc Designate user parameter for Matches expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@986744 13f79535-47bb-0310-9956-ffa450edef68
2010-08-18 15:36:01 +00:00
Fay Wang dbb0a5fe41 OPENJPA-735: OpenJPA support for SolidDB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@986725 13f79535-47bb-0310-9956-ffa450edef68
2010-08-18 15:08:25 +00:00
Fay Wang efd6ee93b5 OPENJPA-735: OpenJPA support for SolidDB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@986525 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17 23:39:23 +00:00
Jeremy Bauer 0b3f1b2d2a OPENJPA-735 Updated DBIdentifier to allow case insensitive compares for databases that do not support mixed case identifiers.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@986166 13f79535-47bb-0310-9956-ffa450edef68
2010-08-17 01:57:22 +00:00