Commit Graph

5144 Commits

Author SHA1 Message Date
Mark Struberg dc31b800b8 OPENJPA-2555 fix randomly failing tests by forcing microseconds 2019-04-05 12:57:23 +02:00
Mark Struberg 64af85106a fix random failing behaviour if id did already exist 2019-04-05 11:07:53 +02:00
Mark Struberg 4e59c48364 OPENJPA-2555 use a defaultFractionLength of 0 for backward compat
This is how the default of MySQL and the previous behaviour of OpenJPA did.
If a user want he can use either @Column(scale=n) or set it via DBDictionary:
openjpa.jdbc.DBDictionary=(defaultFractionLength=6)
2019-04-05 10:29:27 +02:00
Mark Struberg a5b50a5bd4 OPENJPA-2784 add docs for sub-second fractions in MariaDB and MySQL 2019-04-03 00:21:02 +02:00
Mark Struberg 14263ca52d OPENJPA-2775 improve JavaDoc for sub-second fractions 2019-04-02 22:53:17 +02:00
Mark Struberg 99aa054a29 OPENJPA-2784 update db compat matrix 2019-04-02 22:29:47 +02:00
Mark Struberg 11cfff3f78 move to 3.1.0-SNAPSHOT as we upped the jpa-spec API to 2.2 2019-03-31 22:32:56 +02:00
Mark Struberg acf78d8091 OPENJPA-2713 fix wrong offset after daylight saving switched 2019-03-31 22:32:17 +02:00
Mark Struberg 31c0450562 OPENJPA-2747 upgrade to jpa-2.2 api 2019-03-27 12:29:57 +01:00
Mark Struberg 53b946d9ca add deprecation info and clean up code
no functional change
2019-03-26 11:14:07 +01:00
Maxim Solodovnik 8c0b843f6e
[OPENJPA-2781] persistence_2_1.xsd is bundled for offline processing 2019-03-24 20:32:47 +07:00
Maxim Solodovnik 75999ad5d9 [OPENJPA-2780] reverse customizer adds @Enumerated annotation as expected 2019-03-22 12:21:32 +07:00
Maxim Solodovnik cb20dd6b95
[OPENJPA-2777] Javax index (#39)
[OPENJPA-2777] javax.persistense.Index can be used on Table annotation
2019-03-05 20:44:49 +07:00
Mark Struberg 44aede26df OPENJPA-2747 upgrade to JPA-2.2 api 2019-03-05 14:29:01 +01:00
Maxim Solodovnik 697c4d96ab
[OPENJPA-2748] commons-dbcp2 is updated to most recent version 2019-03-04 17:04:45 +07:00
Mark Struberg cae509aa72 add download location for the JakartaEE TCK zip 2019-02-18 07:31:11 +01:00
Mark Struberg 1690076b37 fix formatting and readability 2019-02-14 15:25:50 +01:00
Mark Struberg 87422c8323 OPENJPA-2753 add info about how to debug SQLServer 2019-02-14 15:21:53 +01:00
Mark Struberg c1ae373a0f OPENJPA-2713 add java8 time api for SQLServer 2019-02-14 15:21:53 +01: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 80736f6e9d OPENJPA-2733 subquery parameters are incorrectly assigned
patch submitted by Pawel Veselov - thanks!
2019-02-14 14:29:11 +01:00
Mark Struberg 0d9645781e add -ea to have all debug options uniform 2019-02-14 10:03:35 +01:00
Mark Struberg b484ee1f22 add missing delegate method for Java8 support 2019-02-14 10:03:04 +01:00
Mark Struberg b714dbae18 use correct name for the db 2019-02-07 09:56:15 +01:00
Mark Struberg fa6ce77004 OPENJPA-2773 set dbcp defaults to align with commons dbcp
Especially the maxIdle=0 was problematic.
It effectively disables the whole pooling, which is counter productive.
2019-02-07 09:56:15 +01:00
Mark Struberg de316bc018 OPENJPA-2753 add profile for MSSqlServer docker 2019-02-07 09:32:31 +01:00
Mark Struberg f27a0b9124 add debugging instruction with hsqldb 2019-02-06 10:23:22 +01:00
Mark Struberg 238449e155 hsqldb seems to have a bug with concurrent access to the underlying DB. 2019-02-06 10:23:22 +01:00
Mark Struberg 037a2dc4c0 OPENJPA-2775 fix hsql metadata handling 2019-02-06 10:23:22 +01:00
Maxim Solodovnik e4197b0c42 [OPENJPA-2748] commons-collection4 is updated to release version 2019-02-05 11:06:35 +07:00
Mark Struberg 6e8c4d987f fix broken unit test. Illegal table 'ROLES'
The ROLES table exists by default in some datbases.
So it's probably better to not use it as table name in our unit test.
2019-02-02 13:49:27 +01:00
Mark Struberg 11863ed932 OPENJPA-2772 update list of h2 resorved words 2019-02-02 13:48:22 +01:00
Mark Struberg 4b88b80dc0 remove obsolete sql tracing 2019-02-02 13:47:53 +01:00
Mark Struberg af39516fc8 OPENJPA-2713 add java8 time support for h2 2019-02-02 13:04:15 +01:00
Mark Struberg 25cde67172 test cleanup
* remove unused methods
* fix formatting
* delete entries owt we will randomly blow up
2019-02-02 12:08:57 +01:00
Mark Struberg 17ef63bbe4 Those 2 tests only work when running on Derby.
They hardcoded slurp in some derby driver via simple-ldap.
Thus they only work if the derby profile is activated.
In any other case those tests blow up with a CNFE.
2019-02-02 12:06:57 +01:00
Mark Struberg 43aa42ccb5 OPENJPA-2771 fix h2 'unlimited' LIMIT case
With h2 one should omit the LIMIT section to get all results.
Our old LIMIT 0 did effectively prune the whole result list to zero entries.
2019-02-02 12:02:58 +01:00
Mark Struberg 0cd523b1f5 move back to h2-1.4.196 due to a Time bug in h2 197 2019-02-01 14:58:23 +01:00
Mark Struberg ad4ed02728 OPENJPA-2713 fix h2 2019-01-30 22:33:08 +01:00
Mark Struberg e82d1ec2fb OPENJPA-2713 remove left over in PostgresDictionary 2019-01-29 22:22:15 +01:00
Mark Struberg be62c5a123 OPENJPA-2713 add LocalDate support for Oracle DB
Oracle does still not support native LocalDate, etc in their JDBC driver.
So we have to treat it like the old datatypes.
2019-01-29 13:02:05 +01:00
Mark Struberg e908a9c293 formatting only 2019-01-28 13:01:16 +01:00
Mark Struberg fffc74f0a7 OPENJPA-2713 improve MariaDB Dictionary
Seems like MariaDB does still have quite a few problems in their JDBC driver.
I at least tried to iron out new functionality.
2019-01-28 13:00:05 +01:00
Mark Struberg 9f0631bbf4 switch back to old mariadb connectorj due to a bug
MariaDB connectorj-2.3.0 has a bug with ESCAPE handling.
This leads to many tests blow up with Exceptions.
The respective bug is https://jira.mariadb.org/browse/CONJ-664
2.3.1 should be safe again, but is not yet out.
Thus switching back to 2.2.0.
2019-01-26 21:55:30 +01:00
Mark Struberg 362474e5c9 OPENJPA-2713 add java8 time support for MySQL and MariaDB 2019-01-25 21:37:16 +01:00
Mark Struberg 5079209823 Merge branch 'OPENJPA-2713' 2019-01-25 17:13:55 +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
Romain Manni-Bucau 9e222652df OPENJPA-2770 ensure equal(xxx, literal(boolean)) works in criteria builder 2019-01-23 10:21:53 +01:00
Mark Struberg dbfb360e85 OPENJPA-2713 add OffsetTime support
Works, but something is a bit fishy still.
2019-01-22 22:07:32 +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