4156 Commits

Author SHA1 Message Date
Heath Thomann
e14f922149 OPENJPA-2506: StoreCache interface doesn't work for many ID types - back ported Dalia's fix to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1648430 13f79535-47bb-0310-9956-ffa450edef68
2014-12-29 21:01:02 +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
9a68280d77 OPENJPA-2478: Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1591693 13f79535-47bb-0310-9956-ffa450edef68
2014-05-01 15:55:32 +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
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
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
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
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
d600018d6a 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@1516910 13f79535-47bb-0310-9956-ffa450edef68
2013-08-23 15:59:31 +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
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
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
c47104b95f OPENJPA-2355: Allow more than two input argument to CONCAT() - 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@1505837 13f79535-47bb-0310-9956-ffa450edef68
2013-07-22 22:27:15 +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
Jody Grassel
0aa6a75c5a OPENJPA-2025: Add Compatibility option to AnnotationProcessor6 tool so that the default generated class can be processed cleanly by the default runtime processor
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1497841 13f79535-47bb-0310-9956-ffa450edef68
2013-06-28 16:55:28 +00:00
Albert Lee
17c7fe743e OPENJPA-2305 Revert AnnotationProcess6 @SupportSourceVersion removal. This will be resolved under JIRA 2300.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1495578 13f79535-47bb-0310-9956-ffa450edef68
2013-06-21 20:13:00 +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
Jeremy Bauer
f05c3de7c8 Refrain from logging if verifying log factory plugin.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1481464 13f79535-47bb-0310-9956-ffa450edef68
2013-05-12 01:01:40 +00:00
Albert Lee
649c9d20ee OPENJPA-2371 - move gallery examples from main to test folder
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1475992 13f79535-47bb-0310-9956-ffa450edef68
2013-04-25 22:37:30 +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
4457f3d67b OPENJPA-2070: Error processing while populating Metamodel classes needs improvement. Back-ported to 2.1.x Kevin Sutter's trunk changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1469488 13f79535-47bb-0310-9956-ffa450edef68
2013-04-18 17:33:41 +00:00
Heath Thomann
0e886b4083 OPENJPA-2060: AnnotationProcess failed to generate metadata for List<String>[] attribute in entity. Back-ported Albert Lee's trunk changes to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1469482 13f79535-47bb-0310-9956-ffa450edef68
2013-04-18 17:28:44 +00:00
Heath Thomann
bc0ac7ca59 OPENJPA-2027: Metamodel genereated at runtime expects ListAttribute for all arrays - not just PersistentCollections. Back-ported Mike Dick's trunk changes to 2.1.x; made Compatibility property default to true.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1469452 13f79535-47bb-0310-9956-ffa450edef68
2013-04-18 17:08:36 +00:00
Heath Thomann
19f8697218 OPENJPA-2025: Byte[] and Char[] should be treated as SingularAttributes, not lists by the metamodel generator - merged Mike Dick's trunk changes to 2.1.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1469097 13f79535-47bb-0310-9956-ffa450edef68
2013-04-17 23:18:05 +00:00
Heath Thomann
59322050ed OPENJPA-2305: Canonical MetaModel class generation should not use inhertence - applied Pinaki's trunk changes to 2.1.x.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1469090 13f79535-47bb-0310-9956-ffa450edef68
2013-04-17 22:55:02 +00:00
Jeremy Bauer
d3c68ad3bb Disable logging during brokerfactory de-serialization. Added type checking of plugin values.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1462268 13f79535-47bb-0310-9956-ffa450edef68
2013-03-28 19:33:00 +00:00
Albert Lee
6853346d37 OPENJPA-2326 - Fixed StoreCharAsInteger property for DB2.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1445652 13f79535-47bb-0310-9956-ffa450edef68
2013-02-13 15:14:06 +00:00
Albert Lee
757b4cf4de OPENJPA-2326 - Enable 21x and 221x running TCK 2 against databases other then Derby. Fixed a few configuration problems.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1445201 13f79535-47bb-0310-9956-ffa450edef68
2013-02-12 15:40:38 +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
Heath Thomann
7d31775a03 OPENJPA-2321: Synchronizing logging output stream causes deadlock when used some JDK LogManger derivative - back ported to 2.1.x Pinaki's trunk changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1434944 13f79535-47bb-0310-9956-ffa450edef68
2013-01-17 22:40:34 +00:00
Heath Thomann
e3b1f02221 OPENJPA-2320: Remove static initializers because recursive Predicate constructor deadlocks - back ported Pinaki Poddar's trunk changes to 2.1.x - this issue also depends upon OPENJPA-2304.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1431737 13f79535-47bb-0310-9956-ffa450edef68
2013-01-10 23:52:05 +00:00