Commit Graph

596 Commits

Author SHA1 Message Date
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
Mark Paluch
438989acd7 DATAJDBC-564 - Prepare 2.0.2 (Neumann SR2). 2020-07-22 10:20:44 +02:00
Mark Paluch
7608d15782 DATAJDBC-564 - Updated changelog. 2020-07-22 10:20:23 +02:00
Mark Paluch
e7b510dde1 DATAJDBC-563 - Updated changelog. 2020-07-22 10:08:46 +02:00
Mark Paluch
4fb14754b0 DATAJDBC-562 - Updated changelog. 2020-07-22 09:44:31 +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
3b64104f0a DATAJDBC-541 - Updated changelog. 2020-06-25 12:00:22 +02:00
Mark Paluch
375d4bd47c DATAJDBC-540 - After release cleanups. 2020-06-10 14:29:28 +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
fab6610aac DATAJDBC-540 - Prepare 2.0.1 (Neumann SR1). 2020-06-10 14:01:58 +02:00
Mark Paluch
3a6bfc40c1 DATAJDBC-540 - Updated changelog. 2020-06-10 14:01:37 +02:00
Mark Paluch
40f2ed003f DATAJDBC-527 - Updated changelog. 2020-06-10 12:29:58 +02:00
Mark Paluch
6d14459c44 DATAJDBC-525 - Updated changelog. 2020-06-10 11:38:29 +02:00
Andy Garfield
169ee7687a DATAJDBC-555 - Polishing.
Fixes a typo.

Original pull request #228.
2020-06-10 10:44:50 +02:00
Jens Schauder
7af64b85be DATAJDBC-555 - Polishing.
Removed redundant content.
Change to active voice.
Formatting.

Original pull request: #225.
2020-06-10 10:44:49 +02:00
Mark Paluch
6ed84b8021 DATAJDBC-555 - Document supported databases.
Original pull request: #225.
2020-06-10 10:44:49 +02:00
Mark Paluch
6d6d04f5f5 DATAJDBC-555 - Add common reference documentation sections.
Original pull request: #225.
2020-06-10 10:44:49 +02:00
Mark Paluch
e1df400120 DATAJDBC-555 - Polishing.
Fix formatting.

Original pull request: #225.
2020-06-10 10:44:49 +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
Mark Paluch
8fed2bdc3c DATAJDBC-547 - Polishing.
Let SqlIdentifier implement Streamable<SqlIdentifier> to allow iteration of composed identifiers.
Adapt dialect to iteration changes.

Rewrite simple if blocks to using ternary operators.

Original pull request: #221.
2020-05-27 10:06:19 +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
e4a4b67a02 DATAJDBC-539 - Polishing.
Original pull request: #217.
2020-05-25 16:20:22 +02:00
Mark Paluch
b5e1559cc3 DATAJDBC-539 - Fix parameter wrapping for IN criteria.
We now no longer double-wrap parameters for IN criteria. Previously, collection arguments were wrapped into another collection which caused double-wrapped lists.

Original pull request: #217.
2020-05-25 16:20:22 +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
8136808131 DATAJDBC-528 - After release cleanups. 2020-05-12 12:52:54 +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
Mark Paluch
ee190a15a7 DATAJDBC-528 - Prepare 2.0 GA (Neumann). 2020-05-12 12:27:59 +02:00
Mark Paluch
d6ee1cc0c6 DATAJDBC-528 - Updated changelog. 2020-05-12 12:27:45 +02:00
Mark Paluch
850dc4c758 DATAJDBC-538 - Polishing.
Reformat code.

Original pull request: #216.
2020-05-11 14:32: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
Mark Paluch
0448148bec DATAJDBC-493 - Polishing.
Reformat code. Introduce assertions.
2020-05-11 10:57:57 +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
Greg Turnquist
2029a0c71d DATAJDBC-532 - Remove Travis CI. 2020-05-04 15:15:24 -05:00
Jens Schauder
ac88f1d4f9 DATAJDBC-530 - Polishing.
Original pull request: #210.
2020-05-04 09:19:35 +02:00