Commit Graph

1124 Commits

Author SHA1 Message Date
Jody Grassel 1c8b15fc38 OPENJPA-2705: ArrayOutOfBoundsException occurs with an @EmbeddedId (commit on wdazeys behalf)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1802421 13f79535-47bb-0310-9956-ffa450edef68
2017-07-19 18:18:13 +00:00
Heath Thomann dddfed9f4c OPENJPA-2286: ArgumentException: Attempt to compare incompatible types class java.util.Date and class org.apache.openjpa.jdbc.sql.Raw. Backported changes from 2.2.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1759888 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 19:05:59 +00:00
Heath Thomann 7e68e27c1f OPENJPA-2631: Fix for CriteriaBuilder issue with an @EmbeddedId that contains more than one field.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1750036 13f79535-47bb-0310-9956-ffa450edef68
2016-06-24 03:28:06 +00:00
Heath Thomann 2073783505 OPENJPA-2609: Sporadic ClassCastException occurs under heavy load when QuerySQLCache is enabled.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1709309 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 19:38:42 +00:00
asf-sync-process 42855b69f4 OPENJPA-2603: Merging an unmanaged entity multiple (3) times leads to an exception.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1709201 13f79535-47bb-0310-9956-ffa450edef68
2015-10-17 18:29:11 +00:00
Heath Thomann 3737fdbd21 OPENJPA-2571: Criteria Builder query generates extra alias when using multiselect.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1673300 13f79535-47bb-0310-9956-ffa450edef68
2015-04-13 22:22:58 +00:00
Heath Thomann 2fc38594cd OPENJPA-2557: FinderCache contains incorrectly cached query with a NULL for a Primary Key.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1662610 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 01:25:05 +00:00
Heath Thomann fc01e7816a OPENJPA-2547: When two threads attempt to get a Pessimistic Lock, one thread gets a 'false' lock. Applied fix to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1651843 13f79535-47bb-0310-9956-ffa450edef68
2015-01-14 21:48:12 +00:00
Heath Thomann 1318c6924e OPENJPA-2534: A boolean is not converted correct when using the hint 'UseLiteralInSQL' - applied Rick's patch to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1636464 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 22:41:29 +00:00
Heath Thomann 2a1fd9b502 OPENJPA-2131: Missing IN or OUT parameter exception with OracleDictionary - back ported Albert Lee's trunk commit.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1614935 13f79535-47bb-0310-9956-ffa450edef68
2014-07-31 16:47:36 +00:00
Heath Thomann 9221876ed7 OPENJPA-2476: Fixed OptimisticLockEx due to rounding of a Timestamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1591536 13f79535-47bb-0310-9956-ffa450edef68
2014-05-01 02:34:15 +00:00
Jody Grassel 7dec044a1d OPENJPA-2482: java.sql.SQLException when processing a query result
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1585790 13f79535-47bb-0310-9956-ffa450edef68
2014-04-08 17:34:46 +00:00
Heath Thomann ca71209e74 OPENJPA-2475: A query with LEFT FETCH JOIN returns incorrect results - applied fix to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1569528 13f79535-47bb-0310-9956-ffa450edef68
2014-02-18 21:11:41 +00:00
Jody Grassel b2896d53cd OPENJPA-2453: Add support to retain milliseconds of 'un-rounded' Date field
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1548248 13f79535-47bb-0310-9956-ffa450edef68
2013-12-05 19:12:31 +00:00
Heath Thomann f0fc8e3808 OPENJPA-2449: refresh(PESSIMISTIC_WRITE) generates seperate SQL for the lock - applied to 2.1.x Albert Lee's patch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1539188 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 23:19:16 +00:00
Heath Thomann fb3dd3c09b OPENJPA-2435: Version field in a projection always returned as an Integer.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1533280 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 23:00:39 +00:00
Heath Thomann 50f9c75d14 OPENJPA-1954: ArrayIndexOutOfBoundsException when querying on a version field that is in a MappedSuperclass - back ported to 2.1.x Rick Curtis's commit to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1533233 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 19:56:08 +00:00
Heath Thomann dd4daaebca OPENJPA-2343: Version field returns null when explicity projected from a JOIN in SELECT clause - based fix off of patch provided by Howard Kelsey.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1533218 13f79535-47bb-0310-9956-ffa450edef68
2013-10-17 19:14:40 +00:00
Heath Thomann 752d4c9594 OPENJPA-2425: SELECT fields with @ExternalValues defined returns datastore values instead of unmapped fields - applied Albert Lee's patch to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1530146 13f79535-47bb-0310-9956-ffa450edef68
2013-10-08 03:56:16 +00:00
Jody Grassel f25f879301 OPENJPA-2433: Queries with a sort clause returns fewer entries than the same query that does not have a sort clause
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1530028 13f79535-47bb-0310-9956-ffa450edef68
2013-10-07 19:03:25 +00:00
Jody Grassel c7e3ec4314 OPENJPA-2414: FinderCache does not consider active Fetch Groups/FetchPlan added Fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1529292 13f79535-47bb-0310-9956-ffa450edef68
2013-10-04 20:46:30 +00:00
Heath Thomann e8f8874a72 OPENJPA-1794: Return null, rather than 0, on MAX function - back ported to 2.1.x Jeremy Bauer's commit to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1529241 13f79535-47bb-0310-9956-ffa450edef68
2013-10-04 17:58:15 +00:00
Heath Thomann edfa79ca39 OPENJPA-2423: Isolation level is not working properly on DB2 for JPQL queries with nested sub-queries - committed to 2.1.x the patch/fix provided by Pinaki Poddar.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1517838 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 14:49:06 +00:00
Jody Grassel 3edd740d81 OPENJPA-2414: FinderCache does not consider active Fetch Groups/FetchPlan added Fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1516197 13f79535-47bb-0310-9956-ffa450edef68
2013-08-21 16:15:00 +00:00
Heath Thomann 3c5b28e49e OPENJPA-2376: Escape character in JPQL with parameter substitution generates incorrect SQL - committed a patch sent to me by Albert Lee.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1513249 13f79535-47bb-0310-9956-ffa450edef68
2013-08-12 20:41:36 +00:00
Richard G. Curtis 4d34b6e0e0 OPENJPA-2410 : Merge checkstyle changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1511008 13f79535-47bb-0310-9956-ffa450edef68
2013-08-06 15:47:58 +00:00
Heath Thomann f0fe24872b OPENJPA-2373: MapsId in a Child entity to a Parent entity using auto-assigned identity fails with duplicte INSERT SQL - back ported to 2.1.x Pinaki Poddar's trunk changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1484300 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 15:44:19 +00:00
Heath Thomann 25ac722fbc OPENJPA-2324: Removed commented out println's.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1436521 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 18:07:32 +00:00
Heath Thomann 471af4c094 OPENJPA-2324: Option to express literal in query string directly into generate SQL - applied Albert's patch to 2.1.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1436150 13f79535-47bb-0310-9956-ffa450edef68
2013-01-21 03:16:21 +00:00
Albert Lee d3380bdb51 OPENJPA-2236 - back port from 2.2.x to 2.1.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1430543 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 21:12:49 +00:00
Heath Thomann 302e33b6c1 OPENJPA-2235: READ_UNCOMMITTED setting for the fetch plan isolation level is ignored in DB2Dictionary - applied Helen Xu's patch to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1426348 13f79535-47bb-0310-9956-ffa450edef68
2012-12-27 22:13:44 +00:00
Heath Thomann 06ebc55e52 OPENJPA-2289: Applied Albert's patch to 2.1.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1415398 13f79535-47bb-0310-9956-ffa450edef68
2012-11-29 21:50:49 +00:00
Albert Lee 4c8ecb3d73 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/branches/2.1.x@1392660 13f79535-47bb-0310-9956-ffa450edef68
2012-10-01 22:15:38 +00:00
Jody Grassel 43c7eed360 OPENJPA-2149: Restore: Criteria.function adds wrong cats to parameters making it unusable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1384574 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 22:30:02 +00:00
Jody Grassel 5a05dfbb9e OPENJPA-2221: Remove System.out.println() from DBDictionary
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1384464 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 18:39:33 +00:00
Jody Grassel f75a9b4375 OPENJPA-2149: Revert Changes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1384462 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 18:37:15 +00:00
Jody Grassel a40e5ed39a OPENJPA-2149: Criteria.function adds wrong casts to parameters making it unusable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1376627 13f79535-47bb-0310-9956-ffa450edef68
2012-08-23 18:15:30 +00:00
Albert Lee 17ecb7a338 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/branches/2.1.x@1371268 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 16:01:30 +00:00
Dianne E. Richards f0646a15fc OPENJPA-2221 Fix result of value mapping strategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1355034 13f79535-47bb-0310-9956-ffa450edef68
2012-06-28 14:58:23 +00:00
Heath Thomann 48951d15fe OPENJPA-2139: Reverting previous changes to 2.1.x as we've found further considerartion/design is needed.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1350035 13f79535-47bb-0310-9956-ffa450edef68
2012-06-13 21:58:26 +00:00
Heath Thomann 423ed6ead0 OPENJPA-2072: Applied Helen Xu's patch to 2.1.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1342291 13f79535-47bb-0310-9956-ffa450edef68
2012-05-24 15:04:57 +00:00
Heath Thomann beab029dad OPENJPA-2095: Applied Helen Xu's patch to 2.1.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1342113 13f79535-47bb-0310-9956-ffa450edef68
2012-05-24 00:59:58 +00:00
Heath Thomann 4ea7ec913a OPENJPA-2174: Applied Helen Xu's patch to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1342086 13f79535-47bb-0310-9956-ffa450edef68
2012-05-23 23:21:47 +00:00
Heath Thomann b3f3418052 OPENJPA-2139: Apply my lastest patch, which includes contributions added by Rick and Mark.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1342074 13f79535-47bb-0310-9956-ffa450edef68
2012-05-23 22:21:40 +00:00
Heath Thomann 87f7708cf2 OPENJPA-2118: Provide fix to avoid possible 'division by zero' error.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1342070 13f79535-47bb-0310-9956-ffa450edef68
2012-05-23 21:46:40 +00:00
Heath Thomann e0793ab046 OPENJPA-1974: Applied to 2.1.x Rick's changes from trunk (2.2.x)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1340872 13f79535-47bb-0310-9956-ffa450edef68
2012-05-21 00:02:09 +00:00
Heath Thomann 47e5d28034 OPENJPA-2132: Applied to 2.1.x Dianna's changes from 2.2.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1340765 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 16:26:25 +00:00
Albert Lee 6c2fba48fe 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/branches/2.1.x@1340122 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 15:08:41 +00:00
Dianne E. Richards f80acc3f91 OPENJPA-2175 Fix problem with multiple foreign keys of the same type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1339677 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 16:04:13 +00:00
Heath Thomann 129e6ae069 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/branches/2.1.x@1337605 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 18:41:15 +00:00