Commit Graph

1585 Commits

Author SHA1 Message Date
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 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
Heath Thomann 776e6cec94 OPENJPA-1986: Extra queries being generated when cascading a persist - added another/similar check to the ones added by Rick.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1580903 13f79535-47bb-0310-9956-ffa450edef68
2014-03-24 16:29:40 +00:00
Heath Thomann b69549f0c5 OPENJPA-2475: A query with LEFT FETCH JOIN returns incorrect results - made test update.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1575444 13f79535-47bb-0310-9956-ffa450edef68
2014-03-07 23:00:00 +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 8437f735f4 OPENJPA-2330: Stackoverflow due to endless recursive calls - back ported to 2.1.x Rick Cutis's changes to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1539086 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 18:00:57 +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
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
Jody Grassel 06a139afb9 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@1516464 13f79535-47bb-0310-9956-ffa450edef68
2013-08-22 14:39:43 +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
Jody Grassel 6f36f2af34 OPENJPA-2267: native query select with null result causes NullPointerException
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1508983 13f79535-47bb-0310-9956-ffa450edef68
2013-07-31 18:30:57 +00:00
Heath Thomann 0e6a4b7252 OPENJPA-1983: Don't cascade to an unloaded field when merge is called on a managed Entity - back ported Rick Curtis' trunk changes to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1504619 13f79535-47bb-0310-9956-ffa450edef68
2013-07-18 19:34:28 +00:00
Albert Lee 8d3fd54e29 Add CLEAR_TABLES to avoid intermittent failures.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1501402 13f79535-47bb-0310-9956-ffa450edef68
2013-07-09 17:46:56 +00:00
Heath Thomann ccb25d5ca8 OPENJPA-2373: Made a test case update given identity auto generated ids do not work so well for some databases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1485010 13f79535-47bb-0310-9956-ffa450edef68
2013-05-21 23:23:32 +00:00
Heath Thomann 5b07fdfc52 OPENJPA-1979: Regression for non-standard joins with constant column values - 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@1484313 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 17:06:13 +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 5f824a2c5f OPENJPA-1912: Generate externalizable methods correctly for super and subclasses - back ported to 2.1.x Mark Struberg's trunk changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1483996 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 21:23:43 +00:00
Heath Thomann e47f9f772d OPENJPA-2325: MappedSuperClass without an @Id causes wrong identity type for the inherited types - back-ported to 2.1.x Pinaki Poddar's commit to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1469949 13f79535-47bb-0310-9956-ffa450edef68
2013-04-19 16:40:28 +00:00
Heath Thomann 5beac33c27 OPENJPA-2257: Properly synchronized _supportedKeys in ConigurationImpl as contributed by Albert Lee, as well as additional changes to return a copy of _supportedKeys. Test case contributed by Stephan Hagedorn.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1426582 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 17:01:26 +00:00
Heath Thomann 2fc19c4250 OPENJPA-2235: Updated TestIsolationFecthHint test to fix build failure.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1426386 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 03:40:56 +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
Jody Grassel eb1cf11b87 OPENJPA-2233: Failed to invoke pcGetIDOwningClass method on embeddable entity with ID annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1397306 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 20:58:20 +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 2e1b548569 OPENJPA-2261: Restore: Query SQL Cache issue with NULL parameters
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1384579 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 22:34:37 +00:00
Jody Grassel e4bc39541f OPENJPA-2260: Restore: Parenthesis-augmented parameters are improperly processed at EM level
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1384576 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 22:32:33 +00:00
Jody Grassel 0a27ebd759 OPENJPA-2260: Revert needs removal of new files
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1384519 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 20:51:59 +00:00
Jody Grassel c45b852156 OPENJPA-2261: Revert needs removal of new files
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1384498 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 20:03:04 +00:00
Jody Grassel 4f8fcc7360 OPENJPA-2261: Revert Changes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1384460 13f79535-47bb-0310-9956-ffa450edef68
2012-09-13 18:35:55 +00:00
Jody Grassel 721563e103 OPENJPA-2261: Query SQL Cache issue with NULL parameters
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1382980 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 16:52:31 +00:00
Jody Grassel 0d1399566e OPENJPA-2260: Parenthesis-augmented parameters are improperly processed at EM level
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1382953 13f79535-47bb-0310-9956-ffa450edef68
2012-09-10 15:52:02 +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
Dianne E. Richards 09e1c209ea OPENJPA-2207 Fix single numeric db identifier problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1348080 13f79535-47bb-0310-9956-ffa450edef68
2012-06-08 14:09:12 +00:00
Albert Lee 4c2d1f2d8b OPENJPA-2095 - JUnit 4 treats Test*.class as test case. Otherwise the following exception will be observed.
java.lang.IllegalArgumentException: Test class can only have one constructor
    at org.junit.runners.model.TestClass.<init>(TestClass.java:32)
    at org.junit.runners.ParentRunner.<init>(ParentRunner.java:54)
    
Rename entity classes prefix Test* to avoid the problem.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1342801 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 20:28:34 +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 0148ee0d79 OPENJPA-2107: 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@1342138 13f79535-47bb-0310-9956-ffa450edef68
2012-05-24 04:34:15 +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