1234 Commits

Author SHA1 Message Date
Jody Grassel
970cd53e8d OPENJPA-2525: Use of JoinColumn targets to another joinColumn key exposed as an attribute will cause a ConstrainViolation exception on persist
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1627112 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 18:34:08 +00:00
Heath Thomann
52fcb281e1 OPENJPA-2476: Fixed OptimisticLockEx due to rounding of a Timestamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1591540 13f79535-47bb-0310-9956-ffa450edef68
2014-05-01 03:10:56 +00:00
Heath Thomann
3be28f1719 OPENJPA-2286: ArgumentException: Attempt to compare incompatible types class java.util.Date and class org.apache.openjpa.jdbc.sql.Raw
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1580973 13f79535-47bb-0310-9956-ffa450edef68
2014-03-24 18:29:15 +00:00
Heath Thomann
083bb0137e OPENJPA-2475: A query with LEFT FETCH JOIN returns incorrect results - applied fix to 2.3.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1580431 13f79535-47bb-0310-9956-ffa450edef68
2014-03-23 02:36:12 +00:00
Jody Grassel
97205c0e9a OPENJPA-2423: Added null-check to DB2Dictionary update
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1564495 13f79535-47bb-0310-9956-ffa450edef68
2014-02-04 21:11:17 +00:00
Jody Grassel
ee74aa08a1 OPENJPA-2453: Add support to retain milliseconds of 'un-rounded' Date field.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1564121 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 22:41:12 +00:00
Jody Grassel
5eed1ecc90 OPENJPA-2450: Option to disable execution of ALTER SEQUENCE...INCREMENT BY statement for sequences.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1564058 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 21:07:50 +00:00
Mark Struberg
5e80bd92a7 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1540827 13f79535-47bb-0310-9956-ffa450edef68
2013-11-11 20:08:00 +00:00
Mark Struberg
4c3e9dbcdb [maven-release-plugin] prepare release openjpa-parent-2.3.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1540825 13f79535-47bb-0310-9956-ffa450edef68
2013-11-11 20:07:41 +00:00
Mark Struberg
979d8f24e9 OPENJPA-2335 review test case and update checks
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1540371 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 19:26:31 +00:00
Mark Struberg
fe7cfaef9d OPENJPA-2335 only handle key columns very restrictive
There is no reason to forbid updates to other Columns like OrderColumn, etc



git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1540277 13f79535-47bb-0310-9956-ffa450edef68
2013-11-09 08:20:50 +00:00
Heath Thomann
b0e220a056 OPENJPA-2449: refresh(PESSIMISTIC_WRITE) generates seperate SQL for the lock - applied to 2.3.x Albert Lee's patch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1539199 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 23:41:06 +00:00
Mark Struberg
4f5b2528a3 [maven-release-plugin] rollback the release of openjpa-parent-2.3.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1538461 13f79535-47bb-0310-9956-ffa450edef68
2013-11-03 21:22:50 +00:00
Mark Struberg
8583c9b5b2 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1538091 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 23:41:23 +00:00
Mark Struberg
d2e67d03e6 [maven-release-plugin] prepare release openjpa-parent-2.3.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1538089 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 23:41:09 +00:00
Jody Grassel
a24ef499f3 OPENJPA-2414: FinderCache does not consider active Fetch Groups/FetchPlan added Fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1536793 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 16:23:36 +00:00
Mark Struberg
945cd6b206 OPENJPA-2200 remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1536638 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 10:13:25 +00:00
Mark Struberg
db54b93b36 OPENJPA-2018 fix handling of Arrays in Select IN statements
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1536453 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 17:59:49 +00:00
Mark Struberg
f923376210 OPENJPA-2440 close connection after not using it anymore
this prevents leaks like the one reported by rmannibucau.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1533640 13f79535-47bb-0310-9956-ffa450edef68
2013-10-18 21:25:56 +00:00
Heath Thomann
1da1af03ca OPENJPA-2435: Version field in a projection always returned as an Integer. Merged 2.1.x changes to 2.3.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1533288 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 23:22:40 +00:00
Heath Thomann
3b9ae7d72a OPENJPA-2425: SELECT fields with @ExternalValues defined returns datastore values instead of unmapped fields - applied Albert Lee's patch to 2.3.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1533243 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 20:17:41 +00:00
Heath Thomann
a62f051d07 OPENJPA-2343: Version field returns null when explicity projected from a JOIN in SELECT clause - based fix off of patch provided by Howard Kelsey. Merged 2.2.x commit to 2.3.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1533235 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 19:58:59 +00:00
Mark Struberg
0059797e00 OPENJPA-2221 also applied to 2.3.x branch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.3.x@1533026 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 09:57:05 +00:00
Jody Grassel
a3fccb40e3 OPENJPA-2432: MySQL dictionary can't be found from a valid connection
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1526968 13f79535-47bb-0310-9956-ffa450edef68
2013-09-27 16:05:01 +00:00
Jeremy Bauer
9f8a682a03 OPENJPA-2366 Committing code and unit tests contributed by Austin Dorenkamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1519550 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 04:18:09 +00:00
Heath Thomann
7a9815a15f OPENJPA-2423: Isolation level is not working properly on DB2 for JPQL queries with nested sub-queries - committed to trunk the patch/fix provided by Pinaki Poddar.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1517843 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 15:06:13 +00:00
Jody Grassel
ee6f4acc3f OPENJPA-2414: FinderCache does not consider active Fetch Groups/FetchPlan added Fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1516853 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 14:11:17 +00:00
Heath Thomann
0aed173d4f OPENJPA-2376: Escape character in JPQL with parameter substitution generates incorrect SQL - committed a patch sent to me by Albert Lee - merged changes from 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1513276 13f79535-47bb-0310-9956-ffa450edef68
2013-08-12 22:02:58 +00:00
Heath Thomann
f63e792243 OPENJPA-2387: Fix to exclude schema name when checking the length of a sequence name. Made update to ensure schema is used after length is calculated.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1508188 13f79535-47bb-0310-9956-ffa450edef68
2013-07-29 19:27:27 +00:00
Jeremy Bauer
ca76712e38 OPENJPA-1794 aggregate function with no result set must return null
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1506198 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 18:26:42 +00:00
Jody Grassel
92c4369aa1 OPENJPA-2400: MariaDB DBDictionaryFactory update
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504985 13f79535-47bb-0310-9956-ffa450edef68
2013-07-19 19:58:36 +00:00
Heath Thomann
e384913eae OPENJPA-2387: Fix to exclude schema name when checking the length of a sequence name.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504721 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 23:32:10 +00:00
Richard G. Curtis
4cf336fd95 OPENJPA-2410 : Detect SystemOut/Err in code at build time. Patch submitted by Di Wu Lau.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504673 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 21:34:23 +00:00
Jody Grassel
1b1b60c9a7 OPENJPA-2400: MariaDB support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1501805 13f79535-47bb-0310-9956-ffa450edef68
2013-07-10 15:43:18 +00:00
Albert Lee
a30d93f5c8 OPENJPA-2356 Database specific adjustments for previous patch. Contributed by Di Lau.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1501256 13f79535-47bb-0310-9956-ffa450edef68
2013-07-09 13:25:21 +00:00
Albert Lee
c7b4e05b1e OPENJPA-2391 - commit patch contributed by Di Lau.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1496128 13f79535-47bb-0310-9956-ffa450edef68
2013-06-24 17:23:56 +00:00
Albert Lee
123e28821e OPENJPA-2390 - commit patch contributed by Di Lau.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1496124 13f79535-47bb-0310-9956-ffa450edef68
2013-06-24 17:05:05 +00:00
Pinaki Poddar
fa122cdfae OPENJPA-2373: special processing path for MapsId with auto-generated identity
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1469649 13f79535-47bb-0310-9956-ffa450edef68
2013-04-19 00:55:11 +00:00
Pinaki Poddar
34b223fa67 OPENJPA-2373: Add toString() for debugging
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1469646 13f79535-47bb-0310-9956-ffa450edef68
2013-04-19 00:12:35 +00:00
Pinaki Poddar
3d11895269 OPENJPA-2365: Support for delete-by-query. Correction for hint processing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1464082 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 15:51:52 +00:00
Pinaki Poddar
6adc2f465f OPENJPA-2356: Use FETCH OFFSET/NEXT and ROWNUM support for DB2 familiy of databases for Range queries
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1459918 13f79535-47bb-0310-9956-ffa450edef68
2013-03-22 18:22:38 +00:00
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