Commit Graph

4725 Commits

Author SHA1 Message Date
Jody Grassel 3235030257 OPENJPA-2525: Change new test entities to use AUTO instead of IDENTITY pk generation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1629049 13f79535-47bb-0310-9956-ffa450edef68
2014-10-02 19:20:31 +00:00
Jody Grassel 319bb37fe1 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/trunk@1627091 13f79535-47bb-0310-9956-ffa450edef68
2014-09-23 17:03:48 +00:00
Heath Thomann 077ad2b446 OPENJPA-2494: A default Schema defined in a PU default (<persistence-unit-defaults>) in an orm.xml file is not being honored.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1626916 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 23:06:18 +00:00
Richard G. Curtis 86c478ac07 OPENJPA-2505 : Properly init MetaDataRepository when obtaining a reference in EntityManagerFactory.getMetaModel.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1626287 13f79535-47bb-0310-9956-ffa450edef68
2014-09-19 17:59:00 +00:00
Albert Lee 3eaaa0c4b2 OPENJPA-2516 - Aggregate connection property for Driver.connect
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1610313 13f79535-47bb-0310-9956-ffa450edef68
2014-07-13 22:38:03 +00:00
Richard G. Curtis fc4e1e4f58 OPENJPA-2515: Update openjpa-project assemblies to include xbean-asm.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1608894 13f79535-47bb-0310-9956-ffa450edef68
2014-07-08 18:49:02 +00:00
Richard G. Curtis 0a91a631b8 OPENJPA-2506: Update JPAFacadeHelper to properly create an OpenJPA identity object. Patch contributed by Dalia Abo Sheasha.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1603251 13f79535-47bb-0310-9956-ffa450edef68
2014-06-17 18:30:35 +00:00
Kevin W. Sutter da48a0ad53 OPENJPA-2507. Committing a variation of Thomas Darimont's patch that utilizes ThreadLocal storage to safeguard the _contexts in CriteriaQueryImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1601778 13f79535-47bb-0310-9956-ffa450edef68
2014-06-10 21:47:31 +00:00
Richard G. Curtis e48cd3e59d OPENJPA-2508 : Account for JOIN FETCH statements when loading from the Query Cache.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1600757 13f79535-47bb-0310-9956-ffa450edef68
2014-06-05 20:49:01 +00:00
Richard G. Curtis b95e0d1c6c OPENJPA-2502 : Update accessPath metas in CriteriaExpressionBuilder. Merged changes from 2.2.1.x. Patch contributed by Albert Lee.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1600682 13f79535-47bb-0310-9956-ffa450edef68
2014-06-05 15:48:54 +00:00
Kevin W. Sutter 80015bdbf9 OPENJPA-2459. Revert back to Java 6 in preparation for an interim release before embarking on JPA 2.1 and Java 7 and the rest of Java EE 7...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1599775 13f79535-47bb-0310-9956-ffa450edef68
2014-06-03 19:45:39 +00:00
Kevin W. Sutter d6c469da60 OPENJPA-2509. Updated doc references from @MappedById to @MapsId.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1598334 13f79535-47bb-0310-9956-ffa450edef68
2014-05-29 16:55:18 +00:00
Heath Thomann d7dfa322d6 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/trunk@1591689 13f79535-47bb-0310-9956-ffa450edef68
2014-05-01 15:47:53 +00:00
Heath Thomann 3f33d76a34 OPENJPA-2476: Fixed OptimisticLockEx due to rounding of a Timestamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1591541 13f79535-47bb-0310-9956-ffa450edef68
2014-05-01 03:24:11 +00:00
Jody Grassel 4f23e3fc95 OPENJPA-2368: Undo revert on trunk (Move www.apache.org/openjpa/ns/orm to openjpa.apache.org/ns/orm)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1589852 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 19:48:02 +00:00
Kevin W. Sutter b664f187d3 OPENJPA-2492. Committing a variation of the patch as provided by Romain Manni-Bucau. This patch clears up the ConcurrentHashMap issues relating to the KeySetView return type. This patch also adds a couple of asserts to an existing testcase to verify the results.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1589187 13f79535-47bb-0310-9956-ffa450edef68
2014-04-22 16:01:56 +00:00
Kevin W. Sutter 8aa54b6989 OPENJPA-2491. One other minor spelling update for a testcase name...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1589183 13f79535-47bb-0310-9956-ffa450edef68
2014-04-22 15:57:49 +00:00
Kevin W. Sutter a90ffa2760 OPENJPA-2489. Committing patch as provided by Romain Manni-Bucau. This patch just modifies the testcase to skip attempting to process some new Java 8 methods that are not needed yet...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1588978 13f79535-47bb-0310-9956-ffa450edef68
2014-04-21 20:33:55 +00:00
Kevin W. Sutter 10089d6126 OPENJPA-2491. Variation of the patch as provided by Romain Manni-Bucau. Besides clearing the cache, I also corrected the spelling of "parameter" in this testcase name and another related testcase.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1588977 13f79535-47bb-0310-9956-ffa450edef68
2014-04-21 20:30:10 +00:00
Kevin W. Sutter b3d7fe8829 OPENJPA-2442. Just using ProxyConcurrentMaps for proxying the Map methods. Since this extends ProxyMaps anyway, this is pretty safe change. This change resolves the TestProxyManager errors in openjpa-kernel when testing with Java 8 runtime. And, it doesn't affect Java 7 runtime at all. Refer to the Comments section for more details.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1586651 13f79535-47bb-0310-9956-ffa450edef68
2014-04-11 13:33:05 +00:00
Kevin W. Sutter c0b6d88285 OPENJPA-2487. This patch provided by Romain Manni-Bucau looks good. As stated in the Comments, this patch by itself is not sufficient for Java 8 runtime support, but it is a crucial step. Follow the linked JIRAs for additional fixes required to fully support Java 8.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1586647 13f79535-47bb-0310-9956-ffa450edef68
2014-04-11 13:20:14 +00:00
Heath Thomann 833031ba61 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/trunk@1580972 13f79535-47bb-0310-9956-ffa450edef68
2014-03-24 18:26:36 +00:00
Heath Thomann 030ba2a41f 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/trunk@1580913 13f79535-47bb-0310-9956-ffa450edef68
2014-03-24 16:43:40 +00:00
Heath Thomann 873daf3531 OPENJPA-2475: A query with LEFT FETCH JOIN returns incorrect results - applied fix to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1580432 13f79535-47bb-0310-9956-ffa450edef68
2014-03-23 02:38:08 +00:00
Mark Struberg fa027f605b update copyright year
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1578084 13f79535-47bb-0310-9956-ffa450edef68
2014-03-16 14:19:22 +00:00
Richard G. Curtis 51e2b70be5 OPENJPA-2482: Cache column alias on colum+pathjoins rather than just column.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1576505 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 21:12:12 +00:00
Richard G. Curtis 6d8a46e825 OPENJPA-2441: Remove usage of NullSafeConcurrentHashMap. Patch contributed by Dalia Abo Sheasha.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1570261 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 16:33:30 +00:00
Richard G. Curtis f01f7c4721 OPENJPA-2285: Recommitted DataCacheStoreManager improvement.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1570016 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 00:38:29 +00:00
Richard G. Curtis d5eec88a8a OPENJPA-2389: Update message to be more descriptive. Patch contributed by Ben (?) and Dalia Abo Sheasha.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1569557 13f79535-47bb-0310-9956-ffa450edef68
2014-02-18 23:25:50 +00:00
Richard G. Curtis 48eaa1aef1 OPENJPA-2022 : Minor change to SchemaGenerator. Patch contributed by Jason Zwolak.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1569106 13f79535-47bb-0310-9956-ffa450edef68
2014-02-17 20:38:48 +00:00
Heath Thomann d802d74930 OPENJPA-2453: Add support to retain milliseconds of 'un-rounded' Date field.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1566872 13f79535-47bb-0310-9956-ffa450edef68
2014-02-10 23:55:57 +00:00
Richard G. Curtis 731649a2c9 OPENJPA-2472: Fix concurrency bug in ClassMetaData. Patch contributed by Dalia Abo Sheasha.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1564989 13f79535-47bb-0310-9956-ffa450edef68
2014-02-05 23:12:37 +00:00
Richard G. Curtis e21bcdfaa9 OPENJPA-2134: Deprecate EntityManagerImpl.prepareForPooling().
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1564976 13f79535-47bb-0310-9956-ffa450edef68
2014-02-05 22:48:55 +00:00
Richard G. Curtis 0527c4570d OPENJPA-2467: Fix detection of property access method names. Patch contributed by Dalia Abo Sheasha.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1564931 13f79535-47bb-0310-9956-ffa450edef68
2014-02-05 21:18:31 +00:00
Jody Grassel bcf46e516c OPENJPA-2423: Added null-check to DB2Dictionary update
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1564537 13f79535-47bb-0310-9956-ffa450edef68
2014-02-04 22:23:09 +00:00
Jody Grassel 4e8732d4ae OPENJPA-2450: Option to disable execution of ALTER SEQUENCE...INCREMENT BY statement for sequences.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1564080 13f79535-47bb-0310-9956-ffa450edef68
2014-02-03 21:48:45 +00:00
Richard G. Curtis bf646350ea OPENJPA-2470 : Update DataCacheManagerImpl to use a ConcurrentHashMap rather than a HashMap.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1558594 13f79535-47bb-0310-9956-ffa450edef68
2014-01-15 22:34:05 +00:00
Richard G. Curtis d0a311efe0 OPENJPA-2463 : Change message from error to warning.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1551449 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 02:43:23 +00:00
Richard G. Curtis 9ce4d50169 OPENJPA-2233: Merge changes to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1551446 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 02:28:23 +00:00
Richard G. Curtis d4425f5799 OPENJPA-2466: Fix checkstyle problem.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1550731 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 14:03:11 +00:00
Richard G. Curtis 7c0c4a0a30 OPENJPA-2466: Update ReverseMappingTool to optionally write generated class to a String.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1550626 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 03:26:06 +00:00
Kevin W. Sutter 74671312a5 OPENJPA-2459. Update source and test java level to 1.7 as the minimum version.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1545100 13f79535-47bb-0310-9956-ffa450edef68
2013-11-24 22:39:53 +00:00
Heath Thomann 28cad3351c OPENJPA-2449: refresh(PESSIMISTIC_WRITE) generates seperate SQL for the lock - applied to trunk Albert Lee's patch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1539200 13f79535-47bb-0310-9956-ffa450edef68
2013-11-05 23:47:16 +00:00
Mark Struberg 08035c10ef OPENJPA-2200 remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1536637 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 10:11:46 +00:00
Mark Struberg f4b2428008 OPENJPA-2437 transactional listeners added too late to observe begin event
txs 2 rmannibucau for the fix.
Patch applied with cleanup and tests pimped. 



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1536595 13f79535-47bb-0310-9956-ffa450edef68
2013-10-29 06:36:34 +00:00
Mark Struberg 310be13508 OPENJPA-2444 move the cleanup after freeing the InputStream
Win* blocks the whole file as long as the InputStream is not closed.
Thus we can only delete the file afterwards.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1536455 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 18:01:14 +00:00
Mark Struberg 092e70e0ac OPENJPA-2018 fix handling of Arrays in Select IN statements
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1536439 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 17:43:21 +00:00
Albert Lee a28818b7d5 OPENJPA-2018 add svn:eol-style=native property
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1536036 13f79535-47bb-0310-9956-ffa450edef68
2013-10-26 20:59:04 +00:00
Mark Struberg 9da7935946 OPENJPA-2018 improve unit test setup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1535838 13f79535-47bb-0310-9956-ffa450edef68
2013-10-25 19:40:31 +00:00
Mark Struberg c428609da7 OPENJPA-2018 correctly handle select IN with arrays
txs to rmannibucau for the patch.
Applied with minor changes


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1535760 13f79535-47bb-0310-9956-ffa450edef68
2013-10-25 15:13:10 +00:00