Commit Graph

1344 Commits

Author SHA1 Message Date
Francesco Chicchiriccò a605d872e5 [OPENJPA-2713] Fixing OffsetDateTime conversion 2022-03-10 10:49:13 +01:00
Thomas Andraschko 8ff3dff49b OPENJPA-2877 added caching of constructor 2021-10-27 11:20:41 +02:00
Thomas Andraschko a0e40795ff OPENJPA-2877 test 2021-07-13 15:06:55 +02:00
Thomas Andraschko d698ccaf00 OPENJPA-2877 added caching of method 2021-07-12 16:08:27 +02:00
Thomas Andraschko 116eda9903 OPENJPA-2877 2021-07-12 15:51:47 +02:00
Mark Struberg 1742f62032 fix indention and add missing javadocs 2021-06-14 15:32:48 +02:00
Francesco Chicchiriccò a850031d11 Revert "OPENJPA-2800 mark additional fields and methods as synthetic"
This reverts commit 5b67ce5180.
2021-04-21 12:13:46 +02:00
Mark Struberg 5b67ce5180 OPENJPA-2800 mark additional fields and methods as synthetic
When enhancing an Entity we add a few fields and additional methods.
Those elements should properly get marked as synthetic.
2021-04-19 21:13:07 +02:00
Mark Struberg 1fb5234574 OPENJPA-2665 use modern for loops
no functional change, just java lang updates
2021-04-05 08:47:46 +02:00
Mark Struberg d73e2e72f0 collapse Exceptions and use Diamond style 2021-04-04 18:32:35 +02:00
Mark Struberg a7708636e3 remove unecessary boxing/unboxing - no functional change 2021-04-04 17:54:25 +02:00
Mark Struberg b0ba9c3e60 code cleanup without functional change
* remove unecessary valueOf
* remove ;;
* remove unused imports
* remove unnecessary casts
* etc
2021-04-04 17:09:04 +02:00
Mark Struberg 76225267d9 OPENJPA-2851 simplify comparison
since java.time classes are final we can also use == instead of isAssignableFrom
2021-04-02 20:46:41 +02:00
Mark Struberg 6db4db7f51 OPENJPA-2851 fix CURRENT_DATE with LocalDate and LocalDateTime 2021-04-01 21:59:36 +02:00
Mark Struberg 72df0228ca OPENJPA-2849 coerc native java.sql types to java.time
Many JDBC driver support old java.sql types for select max, min, etc.
Those need to get converted to java.time.* on demand.
2021-03-28 19:36:32 +02:00
Mark Struberg b29976342c OPENJPA-2843 fix signature of runUnderUOW method 2020-12-02 14:27:01 +01:00
Mark Struberg eef64ccd69 OPENJPA-2843 remove ibm specific dependencies
We now hav a single interface which I've implemented clean-room from the bytecode.
This class will NOT get packaged into the jar but will be excluded.
2020-12-02 12:12:13 +01:00
Romain Manni-Bucau 0d7816290e [OPENJPA-2840] light abstraction for asm 2020-11-20 09:43:42 +01:00
Romain Manni-Bucau 9fa619f94e [OPENJPA-2834] ensure getProperties does not fail with xmlstore 2020-09-30 15:34:44 +02:00
Romain Manni-Bucau 910a812a15 [OPENJPA-2833] asm 9 2020-09-29 16:57:20 +02:00
Simone f93ea15745
[OPENJPA-2828] Fix method equals() (#72) 2020-09-22 15:11:24 +02:00
Romain Manni-Bucau 33fc72ac85 [OPENJPA-2831] import [collections4] used classes and drop the dependency 2020-09-16 12:17:13 +02:00
Romain Manni-Bucau 1862e2bad5 dropping java < 8 asm test since we require java >= 8 2020-09-16 10:32:04 +02:00
Mark Struberg 94a033d83b OPENJPA-2821 use AsmAdapter for subclassing
to write proper java8 code
2020-07-23 14:06:52 +02:00
Mark Struberg ab6e0ed4b4 OPENJPA-2823 treat jakarta.* like javax.*
also simplify needsEnhance logic
2020-07-23 14:06:52 +02:00
Mark Struberg bf03bdb314 OPENJPA-2822 get rid of tricks < java8
we can now rely on transform() being available on all JVMs.
2020-07-23 14:06:52 +02:00
Romain Manni-Bucau a975a3d1c6 OPENJPA-2811 asm8 support 2020-04-27 16:52:24 +02:00
Francesco Chicchiriccò 6a3395dc79 [OPENJPA-2801] Introducing KubernetesTCPRemoteCommitProvider 2020-01-28 11:12:25 +01:00
Will Dazey b27175be87 ConcurrentModificationException window when MetaDataRepository cache updated
Signed-off-by: Will Dazey <dazeydev.3@gmail.com>
2019-11-22 13:45:23 -06:00
Romain Manni-Bucau ef98e18480 OPENJPA-2743 skip AttributeConverter when loading the Metamodel and preparing the broker to avoid to fail if it was registered in persistent classes (allowed in JPA to bypass scanning but enable converters) 2019-07-29 17:40:09 +02:00
Joe Grassel d381f3f62c [master] OPENJPA-2790: Convert build from SVN to GIT
This change ensures that git hashes have a length of 7 (observed different default lengths between different versions of git), and restores the "M" at the end of the revision number to signify "dirty" OpenJPA builds.

Signed-off-by: Joe Grassel <jgrassel@apache.org>
2019-06-21 11:56:37 -05:00
Will Dazey 7c54dd855b
OPENJPA-2767: fix for checkstyles (#48)
Signed-off-by: Will Dazey <dazeydev.3@gmail.com>
2019-06-13 10:13:29 -05:00
Will Dazey 99a5a10218
Update org.apache.openjpa.revision.properties from SVN to GIT (#50)
Signed-off-by: Will Dazey <dazeydev.3@gmail.com>
2019-06-13 10:10:50 -05:00
Will Dazey 389a82db97 OPENJPA-2767: Incomplete ValueMapDiscriminatorStrategy cache and MetaDataRepository race condition
Signed-off-by: Will Dazey <dazeydev.3@gmail.com>
2019-05-14 15:25:43 -05:00
Mark Struberg 0e4ec5b392 OPENJPA-2733 fix param index.
Also handle the case if the same Param gets registered multiple times.
This eg happens in case of a Criteria Subquery having the same parameter name.
2019-02-14 15:06:50 +01:00
Mark Struberg 6d2544f390 OPENJPA-2713 properly handle WITH TIME ZONE if supported by db
This includes handling the  new java.sql.Types.TIME_WITH_ZONE
and DATE_WITH_ZONE.
2019-01-25 16:42:15 +01:00
Mark Struberg e57fd518b3 OPENJPA-2713 implement native java8 types
Since some DBs (e.g. PostgreSQL) do support LocalDate, etc
in their JDBC drivers, it's probably the best to support it
on a way deeper level.
2019-01-20 23:51:10 +01:00
Mark Struberg bb6bad0702 OPENJPA-2753 add a profile for Oracle as Docker image
-Ptest-oracle-docker
as new profile to start Oracle 11_XE
2019-01-06 23:43:41 +01:00
Maxim Solodovnik d874cbf6d3
[OPENJPA-2754] maxActive -> maxTotal (#24)
* [OPENJPA-2754] maxActive -> maxTotal

* commons-pool2 and commons-dbcp2 versions are updated, setMaxActive is deprecated with warn being logged

* DBCPDriverDataSource and AutoDriverDataSource are removed

* BasicDataSource is being loaded in case jdbc.DriverDataSource is set to 'dbcp'

* Normal call is replaced with reflection
2018-11-16 13:48:40 +07:00
Mark Struberg 39bde81aa2 OPENJPA-2757 upgrade to xbean-asm7 for Java7 support 2018-11-10 21:33:02 +01:00
Mark Struberg 08bb3a5a0e move openjpa-lib tests to junit4 style
No more junit3 extends TestCase stuff ^^
2018-10-14 21:12:52 +02:00
Mark Struberg 12ec80cd8c move openjpa-kernel to junit4 style 2018-10-13 23:11:45 +02:00
Maxim Solodovnik e25438a174 [OPENJPA-2751] imports, @Overrides and @Deprecated are organized, redundant type arguments and unnecessary casts are removed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1842686 13f79535-47bb-0310-9956-ffa450edef68
2018-10-03 08:11:59 +00:00
Maxim Solodovnik f2fc98031e [OPENJPA-2751] trailing white-spaces were removed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1842614 13f79535-47bb-0310-9956-ffa450edef68
2018-10-02 12:32:32 +00:00
Maxim Solodovnik 4709f38ba2 [OPENJPA-2748] commons-collection is updated to most recent version
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1841941 13f79535-47bb-0310-9956-ffa450edef68
2018-09-25 15:16:54 +00:00
Francesco Chicchiriccò 6c4c77aa78 [OPENJPA-2744] commons-pool is updated to the most recent version - thanks @solomax - This closes #19
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1839885 13f79535-47bb-0310-9956-ffa450edef68
2018-09-02 13:59:07 +00:00
Will Dazey ae4b742527 OPENJPA-2646: Performance Regression Fix
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1838027 13f79535-47bb-0310-9956-ffa450edef68
2018-08-14 15:09:27 +00:00
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
Francesco Chicchiriccò 5700102036 OPENJPA-2730 Update to ASM 6 - This closes #11
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1826718 13f79535-47bb-0310-9956-ffa450edef68
2018-03-14 14:19:29 +00:00
Francesco Chicchiriccò 14d4b8007c OPENJPA-2725 - fix ConcurrentModificationException during unrefed dependents cleanup / thanks @eran-levy - This closes #9
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1819982 13f79535-47bb-0310-9956-ffa450edef68
2018-01-03 15:37:54 +00:00