Commit Graph

1936 Commits

Author SHA1 Message Date
Francesco Chicchiriccò 4c5a46e8b1 [maven-release-plugin] prepare release 4.0.1 2024-09-19 12:48:40 +02:00
Maxim Solodovnik 80a8b7712f
[OPENJPA-2926] Dependencies are updated (#119) 2024-08-28 14:18:46 +07:00
Mark Struberg 96005fcd25 [maven-release-plugin] prepare for next development iteration 2024-02-02 14:30:55 +01:00
Mark Struberg 5b49d5351c [maven-release-plugin] prepare release 4.0.0 2024-02-02 14:30:55 +01:00
Mark Struberg 815ef2349f OPENJPA-2917 fix off-by-1 issue on java stack
long parameters take up 2 byte on the call stack
2023-10-17 15:24:16 +02:00
Mark Struberg 0729141c31 OPENJPA-2911 finish Serp removal 2023-07-25 12:02:44 +02:00
Mark Struberg 60ccb26050 OPENJPA-2911 start removing Serp from PCDataGenerator
wip
2023-07-23 18:36:46 +02:00
Mark Struberg 6eeb025cf3 OPENJPA-2911 migrate InterfaceImplGenerator wip
Still not really there. There is still some very weirdo
ClassLoader mixup which gets 'fixed' as sideeffect of using a roundtrip to BCClass.
Not yet 100% sure yet, still digging
2023-07-19 17:25:52 +02:00
Mark Struberg b4bc2c4965 OPENJPA-2911 remove unused imports 2023-07-19 13:39:49 +02:00
Mark Struberg 0a81c3de7b OPENJPA-2911 move PCEnhancer off Serp 2023-07-19 13:14:16 +02:00
Mark Struberg 86c266df7a OPENJPA-2911 openjpa-lib without Serp 2023-07-17 22:32:23 +02:00
Mark Struberg 37c114c724 OPENJPA-2911 getPCBytecode now returns ClassNodeTracker 2023-07-17 19:32:20 +02:00
Mark Struberg 11367cfbea OPENJPA-2911 ByteCodeWriter with ASM 2023-07-17 18:06:43 +02:00
Mark Struberg bcb00d8909 OPENJPA-2911 move BytecodeWriter to openjpa-kernel
had no usage in openjpa-lib but introduced dependeny to Serp over there
2023-07-17 10:08:39 +02:00
Mark Struberg 77d8a8e05b OPENJPA-2911 few more internal methods in ASM
* pcGetVersion
* translateFromStateManagerMethod
2023-06-21 15:39:00 +02:00
Mark Struberg 94d1874019 !32852 work on staticInitializer via ASM
sadly we cannot yet activate it as it uses LDC ops for classes
which Serp does not understand as it is pre Java-1.4
2023-06-20 18:00:27 +02:00
Mark Struberg 1a287b267f OPENJPA-2911 fix pcClearFields for mixed access subclassing 2023-06-12 20:20:20 +02:00
Mark Struberg 810f85ff9f OPENJPA-2911 fix findField 2023-06-10 00:01:42 +02:00
Mark Struberg 3a667fe78a OPENJPA-2911 copyFields via ASM 2023-06-09 20:01:44 +02:00
Mark Struberg cd194bb72e OPENJPA-2911 addReplaceField in ASM
note that this code right now cannot handle subclasses
as we now generate ldc classconstant code which Serp is unable to understand.
The generated bytecode itself should be correct though!
2023-06-08 13:16:23 +02:00
Mark Struberg 032c6fc7fe OPENJPA-2911 Bridge from BCClass <-> ASM ClassNode
This will allow us to smoothly migrate from Serp to ASM
2023-06-01 14:21:05 +02:00
Mark Struberg d13b85b139 OPENJPA-2911 remove Serp from PCSubclassValidator 2023-05-30 12:19:30 +02:00
Mark Struberg 3ea2412003 OPENJPA-2911 move PCSubclassValidator to ASM 2023-05-25 18:07:41 +02:00
Mark Struberg 31681982de OPENJPA-2911 move PCSubclassValidator to ASM
work in progress.
For now we compare old and new mechanism to catch errors.
2023-05-24 10:38:44 +02:00
Mark Struberg b51d003ed9 OPENJPA-2911 start migrating away from Serp
This introduces 2 methods to tronsform
Serp BCClass ->  ASM ClassWriter
and
ASM ClassWriter -> Serp BCClass
2023-05-22 15:40:32 +02:00
Mark Struberg b238417dab OPENJPA-2911 make test cover bytecode part 2023-05-16 09:29:21 +02:00
Mark Struberg 39c838a56f OPENJPA-2911 move ApplicationIdTool from Serp to ASM 2023-05-16 08:17:57 +02:00
Mark Struberg 4ec4598ad1 OPENJPA-2909 move proxy code to own package
No functional change yet.
2023-04-30 14:21:58 +02:00
Mark Struberg 9a87badd3b OPENJPA-2908 fix derby snake case test 2023-04-25 12:33:07 +02:00
Mark Struberg 3a436b585d OPENJPA-2809 more test fixes 2023-04-24 12:25:23 +02:00
Mark Struberg d9ceb44526 OPENJPA-2908 Jakarta-3.0 API - WIP!
This is not yet finished!
Have to commit in parts as to create decently reviewable steps
2023-04-24 09:19:43 +02:00
Francesco Chicchiriccò c3da147fc9 [maven-release-plugin] prepare for next development iteration 2022-03-16 09:25:57 +01:00
Francesco Chicchiriccò e5933d6aee [maven-release-plugin] prepare release 3.2.2 2022-03-16 09:25:56 +01:00
Romain Manni-Bucau 68b77e1ae7 [maven-release-plugin] prepare for next development iteration 2022-02-03 11:08:53 +01:00
Romain Manni-Bucau 000c065dbe [maven-release-plugin] prepare release 3.2.1 2022-02-03 11:08:53 +01:00
Maxim Solodovnik 468a4538fa
[OPENJPA-2896] automatic module name is set for bundles (#92)
* [OPENJPA-2896] automatic module name is set for bundles

* Automatic-module-names for fat jars only

* 'org.apache.openjpa.jakarta' is dropped

* auto-module-name is dropped from openjpa-all
2021-12-23 22:52:23 +07:00
Maxim Solodovnik e15296c415
[OPENJPA-2893] latest H2 more or less works (#91)
* [OPENJPA-2893] latest H2 more or less works

* Tests are green
2021-12-15 19:24:19 +07:00
Maxim Solodovnik 720869a4e0
[OPENJPA-2881] orm* schemas are available offline (#89)
* orm* schemas are available offline

* Extended schema is enabled by default

* Tests are added
2021-12-15 19:23:10 +07:00
Thomas Andraschko 08fe2742c1
Merge branch 'apache:master' into master 2021-10-27 11:10:46 +02:00
Maxim Solodovnik 9113461cb9
[OPENJPA-2883] 'supportsAutoAssign' is turned OFF when 'useTriggersForAutoAssign' is ON (#84)
* [OPENJPA-2883] test for the issue

* [OPENJPA-2883] 'supportsAutoAssign' is turned OFF when 'useTriggersForAutoAssign' is ON

* Assert is improved

* Warning is logged when conflicting options are selected by user

* Build should be fixed

* EntityManager is properly closed
2021-10-23 00:19:22 +07:00
Will Dazey 30c443dcc3 OPENJPA-2882: Exception passing javax.persistence.* String values to createEntityManager(Map)
Signed-off-by: Will Dazey <dazeydev.3@gmail.com>
2021-10-20 14:55:24 -05:00
Thomas Andraschko a0e40795ff OPENJPA-2877 test 2021-07-13 15:06:55 +02:00
Jean-Louis Monteiro 2771cce607 Small fixes on the tests 2021-05-27 15:26:09 +02:00
Jean-Louis Monteiro 4894c17c07 OPENJPA-2875 make sure to avoid doing things when another persistence provider is specified. 2021-05-26 17:53:10 +02:00
Mark Struberg ba985ac8c7 [maven-release-plugin] prepare for next development iteration 2021-05-10 19:19:33 +02:00
Mark Struberg 6f721f69c9 [maven-release-plugin] prepare release 3.2.0 2021-05-10 19:19:33 +02:00
Mark Struberg 25af7c35ee OPENJPA-2849 proper handling of different Date types 2021-05-07 23:07:41 +02:00
Mark Struberg 813154a570 OPENJPA-2861 fix unit test
Boolean is the correct return value.
This should actually have been returned for all dictionaries.
The problem is that we always only return the _internal_ representation.
The reason is because CASE/WHEN can be used to return values, but also as subquery.
Now imagine a database uses 0 and 1 for false and true. If CASE/WHEN is used
as subquery we really have to return 0/1 (number) because otherwise the WHERE clause
would not fit. When not executing the query on a Entity, we do not know the target type.
So there is probably no way we can later do a BooleanRepresentation call to switch to boolean.
And this would also break existing applications.
2021-05-03 17:06:22 +02:00
Mark Struberg f8667f564d OPENJPA-2868 reserved column names for HSQLDB 2021-05-02 22:22:00 +02:00
Mark Struberg d78bfc47cb OPENJPA-2866 fix identifier unit test
Oracle now supports IDENTITY columns since a very long time.
No need to rely on ancient index creation stuff.
2021-05-02 21:53:12 +02:00