239 Commits

Author SHA1 Message Date
Mark Paluch
607d92e99c Prepare next development iteration.
See #943
2021-04-14 11:16:01 +02:00
Mark Paluch
30f5483357 Release version 2.0.9 (Neumann SR9).
See #943
2021-04-14 11:04:45 +02:00
Mark Paluch
4926f54977 Polishing.
Refactor ArrayUtil into a proper utility class providing toPrimitive and toObject methods for each primitive type. Add boolean support. Move convertToObjectArray to BasicJdbcConverter as its placement in ArrayUtils creates a certain amount of ambiguity over its actual purpose.

Create unit test.

See #945
Original pull request: #949.
2021-03-29 13:58:16 +02:00
Jens Schauder
a55bdb46cc Properly convert primitive array arguments.
Closes #945
Original pull request: #949.
2021-03-29 13:57:36 +02:00
Mark Paluch
7df91295ec Prepare next development iteration.
See #923
2021-03-17 10:33:55 +01:00
Mark Paluch
54b72e36f4 Release version 2.0.8 (Neumann SR8).
See #923
2021-03-17 10:21:33 +01:00
Christoph Strobl
aebaecc07d Prepare next development iteration.
See #861
2021-02-17 11:32:48 +01:00
Christoph Strobl
2d177f8741 Release version 2.0.7 (Neumann SR7).
See #861
2021-02-17 11:07:42 +01:00
Mark Paluch
94878cfb01 Update copyright year to 2021.
Closes #904
2021-01-12 11:33:22 +01:00
Jens Schauder
4b3c9dfd08 #257 - Remove references to Jira.
All references to the Spring Jira instance are replaced by GitHub references.
2021-01-05 10:57:31 +01:00
Jens Schauder
2803cb7f02 DATAJDBC-637 - Remove test that relies on missing infrastructure. 2020-12-11 14:58:38 +01:00
Jens Schauder
71b6a79cab DATAJDBC-637 - Fix tests for all databases.
Adds SQL scripts for all databases.
Separates tests for all databases vs. those that actually support nanosecond precision.

Original pull request: #255.
2020-12-11 08:29:01 +01:00
Greg L. Turnquist
9f0f930e80 DATAJDBC-637 - Fix typo in H2 testing.
Original pull request: #254.
2020-12-11 08:27:48 +01:00
Mark Paluch
79e3667d5d DATAJDBC-637 - Polishing.
Make Jsr310TimestampBasedConverters package-private. Introduce convenience constructors to improve external configuration of JdbcCustomConversions.

Original pull request: #254.
2020-12-11 08:27:48 +01:00
Jens Schauder
a0357a7579 DATAJDBC-637 - Time conversion now preserve nanosecond precision.
The standard JSR 310 converters are no longer used for conversions between java.util.Date and java.time.*.
New converters based converting to/from Timestamp are used.

This preserves the precision because both the java.time.* API and Timestamp have nanosecond precision, while java.util.Date has not.

Original pull request: #254.
2020-12-11 08:27:07 +01:00
Mark Paluch
03c86c8d84 DATAJDBC-625 - Prepare next development iteration. 2020-12-09 12:41:18 +01:00
Mark Paluch
a0c1f55424 DATAJDBC-625 - Release version 2.0.6 (Neumann SR6). 2020-12-09 11:16:20 +01:00
Jens Schauder
73a44d12bc DATAJDBC-641 - Removes references of org.jetbrains.annotations.NotNull.
Those annotations cause build failures once the providing jar wasn't available anymore since kotlin removed that dependency.

Those annotations were present in the code by accident anyway since Spring has and uses its own set of annotations.
2020-12-08 14:30:34 +01:00
Mark Paluch
549fade289 DATAJDBC-601 - Prepare next development iteration. 2020-10-28 14:51:02 +01:00
Mark Paluch
972c2bbbd9 DATAJDBC-601 - Release version 2.0.5 (Neumann SR5). 2020-10-28 14:34:40 +01:00
Mark Paluch
cbb4a67aee DATAJDBC-591 - Prepare next development iteration. 2020-09-16 12:15:40 +02:00
Mark Paluch
e2ee468b39 DATAJDBC-591 - Release version 2.0.4 (Neumann SR4). 2020-09-16 11:43:14 +02:00
Mark Paluch
4b8dab4154 DATAJDBC-582 - Prepare next development iteration. 2020-08-12 13:19:55 +02:00
Mark Paluch
71aa1637bd DATAJDBC-582 - Release version 2.0.3 (Neumann SR3). 2020-08-12 13:07:46 +02:00
Mark Paluch
2a767b36b0 DATAJDBC-586 - Guard JdbcRepositoryFactoryBean against setting null values for properties. 2020-07-30 16:43:19 +02:00
Mark Paluch
6c14318baa DATAJDBC-564 - Prepare next development iteration. 2020-07-22 10:37:05 +02:00
Mark Paluch
8a445c5879 DATAJDBC-564 - Release version 2.0.2 (Neumann SR2). 2020-07-22 10:21:08 +02:00
Jens Schauder
191bf60af7 DATAJDBC-569 - Use JdbcUtils to obtain values from a ResultSet.
Original pull request: #236.
2020-07-14 16:41:43 +02:00
Patrick Lucas
89bbbd5654 DATAJDBC-559 - Support MariaDB in DialectResolver.
Original pull request: #231.
2020-06-25 14:27:10 +02:00
Jens Schauder
26751fd0c4 DATAJDBC-559 - Upgrading the MariaDB JDBC driver.
This changes the behavior of the JDBC driver from always returning `MySQL` for product name to a more involved logic which might result in it returning  `MariaDB`.

Original pull request: #231.
2020-06-25 14:27:09 +02:00
Mark Paluch
14c3162f89 DATAJDBC-540 - Prepare next development iteration. 2020-06-10 14:29:25 +02:00
Mark Paluch
37e95a3825 DATAJDBC-540 - Release version 2.0.1 (Neumann SR1). 2020-06-10 14:02:26 +02:00
Mark Paluch
4d81367c5c DATAJDBC-560 - Fix Criteria mapping when composing a group from top-level criteria.
Using Criteria.from(…) with multiple Criteria objects now uses properly AND combination along with group nesting to render a correct criteria. Previously, the INITIAL combinator in groups caused a mapping exception.
2020-06-09 15:33:16 +02:00
Mark Paluch
312085aa2e DATAJDBC-546 - Skip property population if entity can be constructed entirely using a full constructor. 2020-05-28 13:54:07 +02:00
Mark Paluch
e2bb6bef31 DATAJDBC-547 - Polishing.
Add scripts for DB2 after rebase.

Original pull request: #221.
2020-05-27 13:12:09 +02:00
Jens Schauder
65d1b1437c DATAJDBC-547 - Fixes lock statement for fully qualified table names in PostgreSQL.
Original pull request: #221.
2020-05-27 10:06:15 +02:00
Jens Schauder
76906b8761 DATAJDBC-545 - Fix support of setting properties via constructor. 2020-05-19 15:28:20 +02:00
Mark Paluch
496d953de5 DATAJDBC-542 - Polishing.
Initialize map with capacity. Fix generics.

Original pull request: #218.
2020-05-14 10:42:32 +02:00
Jens Schauder
e80a68d2a9 DATAJDBC-542 - Fixes access to Identifier parts by String.
Enabled access to identifier parts by String arguments in order to make usage with MyBatis feasable.
Properly pass identifier information to MyBatis for insert statements.

Original pull request: #218.
2020-05-14 10:42:32 +02:00
Mark Paluch
0d8bfbf626 DATAJDBC-528 - Prepare next development iteration. 2020-05-12 12:40:53 +02:00
Mark Paluch
44fdfc27bb DATAJDBC-528 - Release version 2.0 GA (Neumann). 2020-05-12 12:28:23 +02:00
Jens Schauder
3c9290483a DATAJDBC-538 - Fixes lock acquisition for DB2.
The DB2 driver requires one to access the `ResultSet` resulting from a SELECT FOR UPDATE.

See also:
* https://github.com/schauder/db2-locks
* https://stackoverflow.com/questions/61681095/how-to-obtain-a-lock-in-db2-with-select-for-update-without-transferring-data

Original pull request: #216.
2020-05-11 14:32:11 +02:00
Jens Schauder
c3fb6d0d51 DATAJDBC-534 - Adds integration test for count projection.
Original pull request: #215.
2020-05-07 08:42:04 +02:00
mhyeon-lee
bc6c88f055 DATAJDBC-534 - Derived Query support for count projection.
Original pull request: #215.
2020-05-07 08:39:22 +02:00
Jens Schauder
aa05b792c3 DATAJDBC-493 - Polishing.
Using `execute` instead of `query` since we are not interested in the results.
Refactoring of the concurrency tests.
Make the concurrency tests run with all databases.
Added support for DB2.
Moved AnsiDialect to the main sources so it can be referenced in other Dialects.

Original pull request: #196.
2020-05-06 16:18:04 +02:00
mhyeon-lee
04c29f4004 DATAJDBC-493 - Avoids deadlocks by acquiring lock on aggregate root table.
Introduces infrastructure to obtain locks and uses them to acquire locks on the table of the aggregate root before deleting references.
Without this lock deletes access non root entities before the aggregate root, which is the opposite order of updates and thus may cause deadlocks.

Original pull request: #196.
2020-05-06 16:18:04 +02:00
Mark Paluch
fa8b95c5f3 DATAJDBC-257 - Polishing.
Move container initialization from static initializer into createDataSource() to not trigger container start when loading the class.
Add TestExecutionListener to ignore tests if the license for a container was not accepted. Add Awaitility to delay test execution until the database is ready so we avoid strange failures due to a delayed container startup.

Fix generics, since tags, author tags. Reformat code.

Original pull request: #213.
2020-05-06 15:54:41 +02:00
Jens Schauder
4bf2b8d0a8 DATAJDBC-257 - Adds DB2 support.
Db2Dialect added in order to support DB2.
Added test configuration files.
Adapted some tests to make them properly work with DB2
QueryAnnotationIntegrationTests converted into an Hsqldb only test since it is next to impossible to make it work across databases since it heavily depends on database and driver specifics.

Removed license acceptance file from the repository in order to not accept a license in the name of someone forking the repository.
For the CI build an appropriate file gets created on the fly.

Original pull request: #213.
2020-05-06 15:49:07 +02:00
Mark Paluch
b0d37bda8a DATAJDBC-529 - Polishing.
Rearrange imports.

Original pull request: #212.
2020-05-05 13:48:53 +02:00
Jens Schauder
370ee4464e DATAJDBC-529 - Use specialized ResultSetExtractor for exists queries.
Exists queries do not look at the value returned in the ResultSet but just check if there is a row.

Original pull request: #212.
2020-05-05 13:45:19 +02:00