Commit Graph

1922 Commits

Author SHA1 Message Date
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
Mark Struberg 90ba3b8d5d fix Spec compat tests to work with all DBs
test should rely on whether KEY is a reserved word or not.
2021-05-02 15:36:05 +02:00
Mark Struberg 188ed235dc OPENJPA-2867 generated pastable java code
also add more reserved words
2021-05-02 14:11:41 +02:00
Mark Struberg 7d3c89c515 OPENJPA-2867 add a way to test reserved words 2021-05-02 12:30:34 +02:00
Mark Struberg adf5ad393d update poms to 3.2.0-SNAPSHOT
as discussed on the list - the next release will be 3.2.0
2021-04-24 11:39:25 +02:00
Mark Struberg 919154ce69 remove unused import 2021-04-18 23:19:17 +02:00
Mark Struberg eb2dbec127 OPENJPA-2789 close connection after bulk delete
while ResultSetResult closes the underlying connection we did loose this handling in
JDBCStoreQuery when XROP sharding got added.
2021-04-18 23:05:50 +02:00
Mark Struberg 7607653792 test needs Oracle specific create table stmt 2021-04-10 17:18:41 +02:00
Mark Struberg 3b51096dae OPENJPA-2866 no need to test JDBC2 feature
Oracle comes with JDBC4. We can safely assume that
Statement#getGeneratedKeys is always available.
Oracle relies on it and will fail without.
2021-04-10 17:06:59 +02:00
Mark Struberg 2408ff7d9e tests which do not commit are not likely to fail... 2021-04-10 12:27:07 +02:00
Mark Struberg bb214f93d4 fix TestQueryExcludingSubclasses sorting
The sorting behaviour of characters )'a..z, A..Z') and
numbers (0..9) is depending on NLS. For e.g. german NLS
in Oracle 0 comes only after z, so we get esub1,esub2,e1,e2
while on some other databases we get e1,e2,esub1,esub2.
Easy fix is to have the second position also a Character to
force a distinctive order over all different databases and
settings.
2021-04-10 11:39:57 +02:00
Mark Struberg d6a19dd56a Oracle seems to have changed their error handling.
They now (tested with Oracle 18) behave more like other databases,
so we should validate whether one of the described error situations got
catched.
2021-04-10 11:11:21 +02:00
Mark Struberg c89a94abd8 reduce loop count because that test takes 2 minutes 2021-04-10 11:10:51 +02:00
Mark Struberg 0fc957a02b OPENJPA-2861 fix Raw handling
Raw did loose the internal type. Once 'interned' to Raw the type was always String.class.
And this broke quite a few return type situations in quite a nasty way.
2021-04-06 22:30:10 +02:00
Mark Struberg bb5503b147 OPENJPA-2861 add unit tests for select sum(case..) 2021-04-06 20:01:59 +02:00