Will Dazey
8be86a6903
OPENJPA-2646: Sporadic NullPointerException and ClassCastException caused by query cache misses in multithreaded environments.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1831596 13f79535-47bb-0310-9956-ffa450edef68
2018-05-14 22:25:05 +00:00
Mark Struberg
7be184d451
cleanup import minor
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1831459 13f79535-47bb-0310-9956-ffa450edef68
2018-05-12 09:37:30 +00:00
Jody Grassel
5c94a7ff67
OPENJPA-2705: ArrayOutOfBoundsException occurs with an @EmbeddedId (commit on wdazeys behalf)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1802529 13f79535-47bb-0310-9956-ffa450edef68
2017-07-20 20:11:40 +00:00
Francesco Chicchiriccò
8f1f9a1af7
[OPENJPA-2698] Applying the provided patch
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1793617 13f79535-47bb-0310-9956-ffa450edef68
2017-05-03 06:45:58 +00:00
Romain Manni-Bucau
af8ea38f87
OPENJPA-2554 JPA 2.1 - Schema Generation, patch from Roberto Cortez, doc to update still
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1770509 13f79535-47bb-0310-9956-ffa450edef68
2016-11-19 18:08:44 +00:00
Mark Struberg
bdc1da9423
OPENJPA use Locale.ENGLISH for toLowerCase and toUperCase where possible
...
* we now use fixed english Locale for 'framework parts' which are by spec portable
* we do NOT yet use a fixed Locale for anything related to column or table names!
txs to Kaloyan Spiridonov for the catch!
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1768216 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 13:46:23 +00:00
Mark Struberg
9cacf08c7a
OPENJPA-2662 remove unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759916 13f79535-47bb-0310-9956-ffa450edef68
2016-09-08 22:03:41 +00:00
Mark Struberg
f0286a268e
OPENJPA-2665 refactor StringUtils
...
We now got rid of commons-lang. Makes 400kB less dependencies
And guaranteed no classpath conflicts.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759663 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 19:04:18 +00:00
Mark Struberg
209adb6fc8
OPENJPA-2662 remove serp.util.Strings.getPackageName
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759356 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 21:11:01 +00:00
Mark Struberg
297190a43a
OPENJPA-2662 reimplement serp.util.Strings#getClassName
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1759355 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 20:35:11 +00:00
Mark Struberg
305758fc96
OPENJPA-2664 move to commons-lang3
...
And also clean up ancient code parts.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1758808 13f79535-47bb-0310-9956-ffa450edef68
2016-09-01 16:27:51 +00:00
Heath Thomann
843398ede4
OPENJPA-2650: Made a very simple test update to the test created for this JIRA.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1757894 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 17:09:54 +00:00
Mark Struberg
13cdb6fd47
explicit table names for all the Entity1 to better understand what exactly blows up on Jenkins
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1757650 13f79535-47bb-0310-9956-ffa450edef68
2016-08-25 10:07:50 +00:00
Mark Struberg
3d4f675038
fix serializable exception
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1757131 13f79535-47bb-0310-9956-ffa450edef68
2016-08-22 10:00:11 +00:00
Mark Struberg
cdfd6e274e
OPENJPA-2654 fix broken stored procedure test
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1757064 13f79535-47bb-0310-9956-ffa450edef68
2016-08-21 16:20:32 +00:00
Mark Struberg
98b7a4f9ea
OPENJPA-2658 also drop trigger T1 which prevents dropping of the function
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1757057 13f79535-47bb-0310-9956-ffa450edef68
2016-08-21 13:16:28 +00:00
Mark Struberg
64e9f3868f
OPENJPA-2592 OPENJPA-2654 merge JPA-2.1 work originally done by rmannibucau in the openjpa-jpa-2.1 branch
...
Thanks to Romain for all the hard work!
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1756850 13f79535-47bb-0310-9956-ffa450edef68
2016-08-18 20:47:20 +00:00
Heath Thomann
68fea1a51c
OPENJPA-2650: When SchemaFactory and useSchemaName=false is set, a schema name is incorrectly used. Merged 2.2.x commit to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1756539 13f79535-47bb-0310-9956-ffa450edef68
2016-08-16 18:08:54 +00:00
Heath Thomann
4afdb07042
OPENJPA-2651: Fix for issue where @SqlResultSetMapping is used with inheritance and a ManyToOne relationship. Merged 2.2.x commit to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1756047 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 20:43:27 +00:00
Heath Thomann
41827d794d
OPENJPA-2631: Fix for CriteriaBuilder issue with an @EmbeddedId that contains more than one field. Ported 2.1.x commit to trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1750038 13f79535-47bb-0310-9956-ffa450edef68
2016-06-24 03:32:58 +00:00
Romain Manni-Bucau
715b9b086f
OPENJPA-2618 pevent Tuple to pass through in createXQuery methods since we dont support it yet
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1716891 13f79535-47bb-0310-9956-ffa450edef68
2015-11-27 15:52:13 +00:00
Jody Grassel
e98845758d
OPENJPA-2605: DelegatingConnection.unwrap() doesn't adhere to java.sql.Wrapper.unwrap() contract
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1713509 13f79535-47bb-0310-9956-ffa450edef68
2015-11-09 18:54:51 +00:00
asf-sync-process
977ba12bfa
OPENJPA-2603: Merging an unmanaged entity multiple (3) times leads to an exception. Merged 2.1.x changes to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1709205 13f79535-47bb-0310-9956-ffa450edef68
2015-10-17 18:37:39 +00:00
Heath Thomann
e5fa4e32df
OPENJPA-2586: Fix to return proper relationship data when QueryCache and FetchPlans are used.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1702147 13f79535-47bb-0310-9956-ffa450edef68
2015-09-10 01:53:27 +00:00
Mark Struberg
41c05d1bbe
OPENJPA-2601 fix 'hint' element in orm.xml parsing
...
Txs to Kariem Hussein for the patch!
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1692088 13f79535-47bb-0310-9956-ffa450edef68
2015-07-21 11:25:35 +00:00
Mark Struberg
c4db9b05b8
create own test entity for testing different configuration
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1690069 13f79535-47bb-0310-9956-ffa450edef68
2015-07-09 11:51:39 +00:00
Mark Struberg
931c6ed844
trying to fix build error on CI
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1689998 13f79535-47bb-0310-9956-ffa450edef68
2015-07-09 07:38:47 +00:00
Mark Struberg
3f040fbe1d
OPENJPA-2600 add cast which is needed for Java8
...
Java8 fails do properly coerc the method calls if we don't 'hint'
it to the right ParameterizedType.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1689951 13f79535-47bb-0310-9956-ffa450edef68
2015-07-08 19:54:53 +00:00
Mark Struberg
82e1458604
OPENJPA-2341 add unit test for Strategy handling
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1689594 13f79535-47bb-0310-9956-ffa450edef68
2015-07-07 08:10:56 +00:00
Mark Struberg
ea1682c425
OPENJPA-2596 schema-delta generation (sqlAction=refresh) drops columns if they have an alternative typeName
...
solved by additionally comparing the final column definition end to end
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683992 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 06:50:58 +00:00
Romain Manni-Bucau
fac15cf557
OPENJPA-2592 basic stored procedure impl import
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/openjpa_jpa-2.1@1683972 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 01:05:22 +00:00
Romain Manni-Bucau
b88cbdee93
upgrading API (throwing exception for all new methods) to JPA 2.1
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/openjpa_jpa-2.1@1683942 13f79535-47bb-0310-9956-ffa450edef68
2015-06-06 19:19:11 +00:00
Mark Struberg
a0b12f8505
re-activate equals and hashCode as this seems to be checked by our MetaDataRepository
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683243 13f79535-47bb-0310-9956-ffa450edef68
2015-06-03 07:12:19 +00:00
Mark Struberg
4b3cf47855
remove IDE generated noise
...
especially if most of the methods actually got implemented already...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683239 13f79535-47bb-0310-9956-ffa450edef68
2015-06-03 06:32:03 +00:00
Mark Struberg
b74fe352db
fix wrong error message
...
funny that we still have kodo stuff in there ;)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683237 13f79535-47bb-0310-9956-ffa450edef68
2015-06-03 06:27:28 +00:00
Mark Struberg
2141465272
fix commented out code which made the test pretty much nil
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683235 13f79535-47bb-0310-9956-ffa450edef68
2015-06-03 06:12:45 +00:00
Mark Struberg
87147689b9
fix unit test setup.
...
* remove the mis-typed 'q' which trashed our exclude rules
* fix enlisted entities in 2 tests. Otherwise the tests will fail randomly
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683234 13f79535-47bb-0310-9956-ffa450edef68
2015-06-03 06:10:05 +00:00
Mark Struberg
0b26209a2f
OPENJPA-2595 upgrade our test suite to junit-4
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1683154 13f79535-47bb-0310-9956-ffa450edef68
2015-06-02 18:04:26 +00:00
Heath Thomann
bdaf141298
OPENJPA-1988: Made an update to the test case for this JIRA, i.e. merged r1642555 from 2.2.x to trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1674167 13f79535-47bb-0310-9956-ffa450edef68
2015-04-16 23:34:58 +00:00
Heath Thomann
7b1c24e1fa
OPENJPA-2571: Criteria Builder query generates extra alias when using multiselect.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1673513 13f79535-47bb-0310-9956-ffa450edef68
2015-04-14 18:59:29 +00:00
Heath Thomann
9d4c78dfff
OPENJPA-2534: A boolean is not converted correct when using the hint 'UseLiteralInSQL' - made test update.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1673509 13f79535-47bb-0310-9956-ffa450edef68
2015-04-14 18:58:07 +00:00
Heath Thomann
f6c5acd9b3
OPENJPA-1988: Made an update to the test case for this JIRA, i.e. merged r1641906 from 2.2.x to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1673276 13f79535-47bb-0310-9956-ffa450edef68
2015-04-13 20:32:10 +00:00
Mark Struberg
85556cb9ea
OPENJPA-2576 remove @nonjava which is actually not a javadoc tag
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1671792 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 10:37:14 +00:00
Mark Struberg
f1ad383f4f
remove empty @return javadocs
...
just caused javadoc warnings...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1671694 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 20:57:11 +00:00
Mark Struberg
d13ffa5eb3
OPENJPA-2335 only handle key columns very restrictive
...
There is no reason to forbid updates to other Columns like OrderColumn, etc
Ported over from 2.3.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1667136 13f79535-47bb-0310-9956-ffa450edef68
2015-03-16 21:45:43 +00:00
Heath Thomann
6591d4d464
OPENJPA-2557: FinderCache contains incorrectly cached query with a NULL for a Primary Key.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1662615 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 01:44:09 +00:00
Heath Thomann
8129fe685b
OPENJPA-2536: FetchGroup is not returning lazy fields. Applied Rick Curtis' fix to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1655360 13f79535-47bb-0310-9956-ffa450edef68
2015-01-28 15:28:40 +00:00
Heath Thomann
4ca9dbd741
OPENJPA-2547: When two threads attempt to get a Pessimistic Lock, one thread gets a 'false' lock. Applied fix to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1651847 13f79535-47bb-0310-9956-ffa450edef68
2015-01-14 21:56:22 +00:00
Heath Thomann
b659ac2578
OPENJPA-2534: A boolean is not converted correct when using the hint 'UseLiteralInSQL' - applied Rick's patch to trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1636474 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 23:48:24 +00:00
Jody Grassel
4540f82216
OPENJPA-1988: openjpa does not process persistence unit default <cascade-persist>
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1636415 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 18:40:59 +00:00