Maxim Solodovnik
4cf4e0d5dc
Almost all tests are passed
2023-01-11 23:36:12 +07:00
Maxim Solodovnik
1d47613294
Mysql driver is basically updated
2022-12-30 14:42:46 +07: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
Francesco Chicchiriccò
f228d2c259
[OPENJPA-2713] Allow for OffsetTime and OffsetDateTime query parameters ( #94 )
2022-03-07 17:54:14 +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
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
Mark Struberg
c5b97348fc
OPENJPA-2614 run ALTER SEQUENCE in a separate tx
...
Quite a lot databases force a commit on DDL changes.
For sequences we try to run an ALTER SEQUENCE to make the sequence
reflect the allocationSize. Doing this will commit all outstanding open
DB changes in Oracle and a few other databases.
We now open a new connection.
2021-06-16 19:54:25 +02:00
Mark Struberg
c6f42826b7
OPENJPA-2876 fix schema 'refresh'
...
Also had to fix the schema handling via persistence.xml.
Thinkfully this section has excellent unit test coverage.
2021-06-16 12:44:15 +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
61540f00c4
reserved column words should be public
...
allow configuration
2021-05-09 00:06:13 +02:00
Mark Struberg
25af7c35ee
OPENJPA-2849 proper handling of different Date types
2021-05-07 23:07:41 +02:00
Mark Struberg
6a7addea16
OPENJPA-2868 update invalid column names for PostgreSQL
2021-05-04 08:02:40 +02:00
Mark Struberg
cb4e47b82c
OPENJPA-2816 had to revert dd9bce0cc9
due to side effect
...
Changing the delimitedFromDb handling had a negative side effect on PostgreSQL.
Postgres uses all lower internally, thus comparing those from the db to the generated
columns does not get detected as equal, which leads to wrong metadata.
We have to come back to HerdDB and also need to re-evaluate DBDict#delimitAll.
2021-05-03 23:29:48 +02:00
Mark Struberg
31d2d862b7
OPENJPA-2868 update invalid columNames for Oracle
2021-05-02 23:14:33 +02:00
Mark Struberg
8e18fdbbbc
OPENJPA-2865 add compat check for WITH_TIMEZONE cols
2021-05-02 23:14:33 +02:00
Mark Struberg
f8667f564d
OPENJPA-2868 reserved column names for HSQLDB
2021-05-02 22:22:00 +02:00
Mark Struberg
5dc56fa17b
OPENJPA-2868 update invalidColumnNames for MariaDB
2021-05-02 17:14:58 +02:00
Mark Struberg
d8b3fd87ff
OPENJPA-2868 add tested reserved word list for MS SQLServer
...
no list has previously been maintained.
2021-05-02 16:45:43 +02:00
Mark Struberg
b99e2dba29
OPENJPA-2868 fix invalidColumnNames for MySQL
2021-05-02 16:11:56 +02:00
Mark Struberg
8f959cc3a5
OPENJPA-2868 update reserved column names for H2
2021-05-02 15:37:06 +02:00
Mark Struberg
d8bb07fe86
OPENJPA-2868 update reserved column words for Derby
2021-05-02 14:31:17 +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
d6a64bebcd
OPENJPA-2866 Oracle GenerationType#IDENTITY support
...
we will now create a column definition
"GENERATED ALWAYS AS IDENTITY"
for auto-increment columns.
2021-04-10 12:27:37 +02:00
Mark Struberg
59a8586855
OPENJPA-2865 use java.time handling from JDBC driver
2021-04-09 14:26:51 +02:00
Mark Struberg
683e78045c
OPENJPA-2863 use MICROS for TIMESTAMP precision in Oracle
...
Default type for Oracle is TIMESTAMP(6) but somehow we did only
round to 3 fraction digits in the past.
Can be tweaked to the old value via DBDictionary config in persistence.xml
2021-04-08 14:55:28 +02:00
Mark Struberg
a68835381e
OPENJPA-2864 use Timestamp precision from Column if set
2021-04-08 14:54:22 +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
5fd5de9fb8
OPENJPA-2862 select SUM return types fixed
...
As per spec section 4.8.5 Aggregate Functions in the SELECT
clause we need to handle a few types in a special way
2021-04-06 22:29:16 +02:00
Mark Struberg
3647e4e257
OPENJPA-2665 typed Collection
...
no functional change
2021-04-06 12:01:11 +02:00
Mark Struberg
044c7d27b1
OPENJPA-2860 PostgreSQL >= 10 supports setQueryTimeout
2021-04-05 18:16:48 +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
9458d1720b
remove obsolete commented out code and modifiers
2021-04-04 16:22:26 +02:00
Mark Struberg
515756b823
OPENJPA-2648 map long to BIGINT
2021-04-04 15:11:28 +02:00
Mark Struberg
1c30090c8c
OPENJPA-2859 use DOUBLE instead of NUMERIC
...
by default NUMERIC has no fraction digits, so rather use
DOUBLE data type which is a 64bit double value.
2021-04-04 13:51:21 +02:00
Mark Struberg
7f92be5e2b
OPENJPA-2858 update dbcp2 to 2.8.0
2021-04-03 22:57:06 +02:00
Mark Struberg
e68083e8d0
move to org.junit.Assert
2021-04-03 18:04:22 +02:00
Mark Struberg
8d3acdc11e
OPENJPA-2857 handle sqlState 70100 as QueryTimeoutException
2021-04-03 16:08:13 +02:00
Mark Struberg
ab8090f556
OPENJPA-2856 improve MariaDB TIME handling
...
* java.sql.Time parameters must be on date Jan 1st 1970, otherwise MariaDB won't find anything in the DB
* from > 10 onwards MariaDB supports up to 6 fractions in TIME as well.
2021-04-03 08:42:28 +02:00
Mark Struberg
53cc83eb7e
OPENJPA-1303 "KEY" is also a reserved word for columns
2021-04-02 18:00:03 +02:00
Mark Struberg
6861dd1d02
OPENJPA-1303 differentiate btw COLUMN and COLUMN_DEF rules
...
Column names and Column definitions (the types, e.g. VARCHAR(20) ) have
different rules. We now can properly specify both of em.
2021-04-02 12:01:02 +02:00