Richard G. Curtis
fd5cc0436c
OPENJPA-2328: Fix NoSuchElementException when using HandlerRelationMapTableFieldStrategy. Patch contributed by Guillaume Chauvet.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1447955 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 22:54:35 +00:00
Pinaki Poddar
4fbf3fc1f0
OPENJPA-2336: Consider database dictionary schema case while matching join column name
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1447945 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 22:30:34 +00:00
Pinaki Poddar
7ce7e55620
OPENJPA-2335: Set non-default value to a foreign key contrained column
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1447906 13f79535-47bb-0310-9956-ffa450edef68
2013-02-19 20:33:15 +00:00
Albert Lee
05b41094b8
OPENJPA-2332 - Update "no-driver" message content for clarity.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1446687 13f79535-47bb-0310-9956-ffa450edef68
2013-02-15 16:57:26 +00:00
Kevin W. Sutter
aad999df89
OPENJPA-2332. Updated the "no-driver" message and added a couple of additional Trace statements to help with debugging Datasource configuration issues.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1445220 13f79535-47bb-0310-9956-ffa450edef68
2013-02-12 16:02:12 +00:00
Kevin W. Sutter
2facc84154
OPENJPA-2326. Found an errant trace statement that is not needed. Left over from a previous commit cleanup. Too much trace is generated...
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1443682 13f79535-47bb-0310-9956-ffa450edef68
2013-02-07 19:37:47 +00:00
Albert Lee
150755864c
OPENJPA-2264 - restore deleted logSQLWarning(PreparedStatement) method to maintain binary backward compatibility.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1438133 13f79535-47bb-0310-9956-ffa450edef68
2013-01-24 19:27:12 +00:00
Heath Thomann
2c3ec95860
OPENJPA-2324: Option to express literal in query string directly into generate SQL - applied Albert's patch to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1436543 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 18:41:30 +00:00
Heath Thomann
bded0a42b6
OPENJPA-2235: READ_UNCOMMITTED setting for the fetch plan isolation level is ignored in DB2Dictionary - applied Helen Xu's patch to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1426352 13f79535-47bb-0310-9956-ffa450edef68
2012-12-27 22:21:52 +00:00
Heath Thomann
2d5ab5c862
OPENJPA-2289: Applied Albert's patch to trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1415702 13f79535-47bb-0310-9956-ffa450edef68
2012-11-30 15:39:17 +00:00
Helen Xu
af3df6bd11
OPENJPA-2282 do not append escape clause by default.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1413890 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 22:02:44 +00:00
Heath Thomann
0633d68005
OPENJPA-2196: Made an update to the message which was added to localizer.properties via this JIRA.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1406249 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 17:53:32 +00:00
Richard G. Curtis
60b97e307f
OPENJPA-2292: Pool CancelPreparedStatements to reduce object allocations.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1405929 13f79535-47bb-0310-9956-ffa450edef68
2012-11-05 19:55:44 +00:00
Richard G. Curtis
2980c1901e
OPENJPA-2280: Reverting previous commits.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1404317 13f79535-47bb-0310-9956-ffa450edef68
2012-10-31 19:45:06 +00:00
Richard G. Curtis
0988966e5c
OPENJPA-2280: Change AbstractDB2Dictionary numeric type mapping from DOUBLE to DECIMAL.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1398979 13f79535-47bb-0310-9956-ffa450edef68
2012-10-16 20:30:31 +00:00
Albert Lee
4ca0cdc92c
OPENJPA-2275 - Enhancements for SchemaTool extension. Contributed by Francesco Chicchiriccò.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1396145 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 18:09:37 +00:00
Albert Lee
a06d373573
OPENJPA-2247 Complete fix for 1x1 bi and mx1 uni relationships of the described problem.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1392661 13f79535-47bb-0310-9956-ffa450edef68
2012-10-01 22:15:42 +00:00
Richard G. Curtis
e424097b56
OPENJPA-2269: Fix duplicate key exception when inserting into sequence table on multithreaded init.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1391185 13f79535-47bb-0310-9956-ffa450edef68
2012-09-27 19:36:44 +00:00
Richard G. Curtis
837638b91b
OPENJPA-2264: Change PreparedStatementManagerImpl.logSQLWarnings to take a Statement rather than a PreparedStatement.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1388137 13f79535-47bb-0310-9956-ffa450edef68
2012-09-20 17:55:21 +00:00
Albert Lee
bc29ef104d
OPENJPA-2255 Enable join table id columns to use the column length from the target instead of hard-coded db specific default column length.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1379687 13f79535-47bb-0310-9956-ffa450edef68
2012-09-01 04:13:26 +00:00
Jody Grassel
9e9b0a7ae3
OPENJPA-2149: Criteria.function adds wrong casts to parameters making it unusable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1376659 13f79535-47bb-0310-9956-ffa450edef68
2012-08-23 19:27:22 +00:00
Albert Lee
c3169ccf36
OPENJPA-2242 - Extends procedure call parameter String cast length if value length is greater than the default length
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1371269 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 16:01:32 +00:00
Richard G. Curtis
a55000a4be
OPENJPA-2229: Honor JoinColumn.name when mapping a uni-directional OneToOne that is in a SecondaryTable.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1369042 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 15:33:00 +00:00
Albert Lee
654f835222
OPENJPA-2196 - Commit contribution by Scott Parkerson.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1365688 13f79535-47bb-0310-9956-ffa450edef68
2012-07-25 18:30:31 +00:00
Jeremy Bauer
0506e9f0b5
OPENJPA-2236 put try/catch around connection info trace in DBDictionary
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1363627 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 02:51:52 +00:00
Richard G. Curtis
4b04ef53cf
OPENJPA-2228: Fix SQLBuffer when using an Entity with an EmbeddedId that has multiple pks and QuerySQLCache is enabled. Patch contributed by Helen Xu.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1362679 13f79535-47bb-0310-9956-ffa450edef68
2012-07-17 21:59:10 +00:00
Kevin W. Sutter
dde88d592c
OPENJPA-2204. Detect a potential null value before blindly outputting a trace string.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346213 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 02:23:03 +00:00
Dianne E. Richards
4f479a9887
OPENJPA-2175 Fix problem with multiple foreign keys of the same type
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346073 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 18:18:04 +00:00
Heath Thomann
e6129051c2
OPENJPA-2095: Applied Helen Xu's patch to trunk with Albert's test case changes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1345263 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 16:02:31 +00:00
Heath Thomann
5fb9e71726
OPENJPA-2072: Applied Helen Xu's patch to trunk, and applied test case changes as Albert had done in JIRA OPENJPA-2095 for issue with using Test* in entity name.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1344914 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 21:17:41 +00:00
Heath Thomann
ebe06fdf35
OPENJPA-2174: Applied Helen Xu's patch to trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1344721 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 13:39:52 +00:00
Heath Thomann
11cd0d5fd4
OPENJPA-2118: Provide fix to avoid possible 'division by zero' error.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1344498 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 23:09:15 +00:00
Mark Struberg
122f5fe92d
remove unused import and fix JavaDoc
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340705 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 12:58:04 +00:00
Albert Lee
901c70e1d6
OPENJPA-2199 - If inverse relation is removed (nulled out) when commit, attempt to find the target type from initialized object in the state manager to complete the update graph for foreign key constraint detection between the relationships.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340123 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 15:08:50 +00:00
Heath Thomann
e6a8d377bc
OPENJPA-2067: Added code, gated by the new DBDictionary.useJDBC4SetBinaryStream prop, to use a JDBC 4.0 version of setBinaryStream.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1338494 13f79535-47bb-0310-9956-ffa450edef68
2012-05-15 00:42:09 +00:00
Jody Grassel
8c8e250f40
OPENJPA-2133: OpenJPA doesn't find custom mappings with an applicable class loader
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1333982 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 14:18:19 +00:00
Jeremy Bauer
df8d3c4416
OPENJPA-2165 Minor fixes, more proxy types, testcases, and doc udpates
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1331051 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 19:53:49 +00:00
Mark Struberg
aac116c904
OPENJPA-2178 switch Date PostgreSQL preci from CENTI to MICRO
...
We looked at the PostgreSQL documentation back to pgsql-6.3 (1998)
and all versions since then can deal with microseconds for TIMESTAMP
fields.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1330898 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 15:10:53 +00:00
Albert Lee
3bfaadf1c1
OPENJPA-2170 - Clear the batching cache regardless if the batch execution has succeeded or failed to avoid duplicated SQL updates.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1312030 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 22:33:08 +00:00
Albert Lee
06742412b3
OPENJPA-2131 - Commit contribution by Zilin Chen.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1309495 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 17:15:50 +00:00
Kevin W. Sutter
8e445e03a1
OPENJPA-2167. Change data structure type from a Set to List so as to avoid the use of hashcode processing.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308654 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 02:14:43 +00:00
Jeremy Bauer
31da969bd6
OPENJPA-2165 minor improvements to delayed collection loading
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308194 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 20:23:47 +00:00
Kevin W. Sutter
0354b057c9
OPENJPA-2162. Allow the setting of the DBDictionary property supportsDelimitedIdentifiers to "false" to skip the extra overhead of processing delimited identifiers when they will not exist for a given application or usage.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307157 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 23:06:42 +00:00
Jeremy Bauer
3e1de6c8e3
OPENJPA-2165 Added support for non-db-ordered list proxies that provide the ability to do non-indexed add or remove operations without loading the collection from the database. Testcases and documentation will follow in future commits.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1306449 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 16:10:35 +00:00
Dianne E. Richards
83b432a46f
OPENJPA-2159 Provide dictionary option for Date rounding
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1304349 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 13:59:13 +00:00
Albert Lee
b68cf1d0fb
OPENJPA-2153 Mark DBCPDriverDataSource non-abstract so that DBCPDriverDataSource.class.newinstance is used to instantiate for property configuration.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1299276 13f79535-47bb-0310-9956-ffa450edef68
2012-03-10 21:26:31 +00:00
Dianne E. Richards
f94fb7f727
OPENJPA-2132 Fix empty List for OneToMany with InheritanceType.JOINED or SINGLE_TABLE
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1298856 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 14:46:44 +00:00
Jeremy Bauer
d03434b557
OPENJPA-2141 fix and test for lazy embedded fields
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1293250 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 13:53:01 +00:00
Kevin W. Sutter
fdda697583
OPENJPA-2123. Introduce a new DBDictionary property (trimStringColumns) that allows for trimming of String columns when retrieved from the ResultSet.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1292574 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 23:09:39 +00:00
Kevin W. Sutter
1cb2f10f6e
OPENJPA-2123. Just check the value of db2ServerType instead of calling isDB2ZOSV8xOrLater().
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1292404 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 17:26:09 +00:00