Commit Graph

356 Commits

Author SHA1 Message Date
Mark Paluch
51aa4c896e DATAJDBC-376 - Cleanup release profile.
Reuse inherited configuration from parent pom.
2019-07-09 11:19:19 +02:00
Mark Paluch
938a52cb33 DATAJDBC-391 - Revise readme for a consistent structure. 2019-07-09 11:19:19 +02:00
Greg Turnquist
de555a87eb DATAJDBC-376 - Use parent 'artifactory' profile for snapshot releases. 2019-07-03 16:47:35 -05:00
Greg Turnquist
ee24f92e1d DATAJDBC-376 - Only build main branch for an upstream trigger. 2019-06-28 18:59:39 -05:00
Greg Turnquist
6453a441fe DATAJDBC-376 - Set user.name and user.home for CI jobs. 2019-06-24 16:27:52 -05:00
Jens Schauder
49b71fe366 DATAJDBC-383 - Changing Mybatis documentation link to https. 2019-06-18 14:12:27 +02:00
Jens Schauder
51b3a8cb11 DATAJDBC-383 - preliminary fix for not using http for MyBatis DTDs.
Currently there seems to be now well maintained https resource for MyBatis DTDs.
We therefore use the tagged sources directly for now.

See also: https://github.com/mybatis/mybatis-3/issues/1559
2019-06-18 11:01:35 +02:00
Christoph Strobl
da9d81374a DATAJDBC-360 - After release cleanups. 2019-06-14 15:12:52 +02:00
Christoph Strobl
c6b1894eed DATAJDBC-360 - Prepare next development iteration. 2019-06-14 15:12:51 +02:00
Christoph Strobl
2d2264048b DATAJDBC-360 - Release version 1.1 RC1 (Moore). 2019-06-14 14:44:25 +02:00
Christoph Strobl
751cbb5102 DATAJDBC-360 - Prepare 1.1 RC1 (Moore). 2019-06-14 14:43:17 +02:00
Christoph Strobl
f51d4c2161 DATAJDBC-360 - Updated changelog. 2019-06-14 14:43:07 +02:00
Christoph Strobl
c7b85f8645 DATAJDBC-372 - Updated changelog. 2019-06-14 13:27:13 +02:00
Christoph Strobl
b65f866fd5 DATAJDBC-384 - Polishing.
Update nullable annotations.

Original Pull Request: #157
2019-06-13 13:43:23 +02:00
Jens Schauder
bd03ef83d6 DATAJDBC-384 - Fixed MyBatisDataAccessStrategy.findAllByPath.
findAllByPath now falls back to the older findAllByProperty for better backward compatibility.
Also the path is included in the query name used for MyBatis.

Original Pull Request: #157
2019-06-13 13:42:58 +02:00
Christoph Strobl
3524d7bacf DATAJDBC-378 - Polishing
Move non integration tests to separate class.

Original Pull Request: #155
2019-06-13 10:32:58 +02:00
Jens Schauder
619396357a DATAJDBC-378 - Proper handling of null and empty collections in JdbcAggregateTemplate.
Original Pull Request: #155
2019-06-13 10:03:59 +02:00
Greg Turnquist
d701b575e6 DATAJDBC-376 - Polishing. 2019-06-11 20:08:23 -05:00
Greg Turnquist
9effc3a68f DATAJDBC-376 - Polishing. 2019-06-11 20:07:36 -05:00
Greg Turnquist
77ee9cddd8 DATAJDBC-376 - Polishing. 2019-06-11 19:54:11 -05:00
Greg Turnquist
0baba7ffe9 DATAJDBC-376 - Introduce Jenkins. 2019-06-11 19:49:33 -05:00
Mark Paluch
c5344e31a9 DATAJDBC-382 - Create security policy readme. 2019-05-31 15:45:00 +02:00
Mark Paluch
bb70b89211 DATAJDBC-377 - Use testcontainers version property.
We now use the version property from Spring Data Build and import testcontainers-bom.
2019-05-22 14:57:46 +02:00
Jens Schauder
ebe76a0c7f DATAJDBC-374 - Polishing.
Clarified the effects of collections on nullable embedded entities.

Original pull request: #154.
2019-05-22 12:49:17 +02:00
Christoph Strobl
55a3f9c372 DATAJDBC-374 - Introduce shortcuts for Embedded#onEmpty(…)
@Embedded.Nullable & @Embedded.Empty offer shortcuts for @Embedded(onEmpty = USE_NULL) and @Embedded(onEmpty = USE_EMPTY) to reduce verbositility and simultaneously set JSR-305 @javax.annotation.Nonnull accordingly.

    @Embedded.Nullable
    EmbeddedEntity embeddedEntity;

Original pull request: #154.
2019-05-22 12:47:24 +02:00
Christoph Strobl
5830b83cf4 DATAJDBC-374 - Add onEmpty attribute to Embedded annotation.
The onEmpty attribute allows to define if an embedded entity should be set to null or a default instance if all properties backing the entity are actually null.

    @Embedded(onEmpty = USE_NULL)
    EmbeddedEntity embeddedEntity;

Original pull request: #154.
2019-05-22 12:46:46 +02:00
Mark Paluch
f69aa31958 DATAJDBC-223 - Polishing.
Simplify conditionals with nested ternary operators. Migrate RelationResolver.findAllBy to returning Iterable of Object instead of T as there is no type contract present. Use Spring utilities where applicable. Simplify tests. Fix warnings, Javadoc, Formatting.

Original pull request: #153.
2019-05-22 11:57:52 +02:00
Jens Schauder
097190ee42 DATAJDBC-223 - Chains of Lists or Maps get properly stored and loaded.
Also solved DATAJDBC-369 since it made refactoring easier.

Known limitation: Back-references to intermediate key columns currently can't get renamed and use the name defined by the property where they become part of the path.

Backward compatibility of the JdbcConfiguration is still broken.

Original pull request: #153.
2019-05-22 11:57:21 +02:00
Mark Paluch
c87d8b8d31 DATAJDBC-371 - Updated changelog. 2019-05-13 14:59:24 +02:00
Mark Paluch
2b0aaa5d6a DATAJDBC-363 - After release cleanups. 2019-05-13 12:17:53 +02:00
Mark Paluch
221eb9dcc8 DATAJDBC-363 - Prepare next development iteration. 2019-05-13 12:17:52 +02:00
Mark Paluch
75aabdabba DATAJDBC-363 - Release version 1.1 M4 (Moore). 2019-05-13 11:59:50 +02:00
Mark Paluch
ca36007c24 DATAJDBC-363 - Prepare 1.1 M4 (Moore). 2019-05-13 11:59:04 +02:00
Mark Paluch
5aa12504c8 DATAJDBC-363 - Updated changelog. 2019-05-13 11:58:52 +02:00
Jens Schauder
bf3f99c585 DATAJDBC-370 - Polishing.
Refactored code to better use existing code.

Original Pull Request: #151
2019-05-13 09:24:13 +02:00
Christoph Strobl
3a89ec0444 DATAJDBC-370 - Fix read/write of nulled embedded objects.
We now allow read and write of Objects annotated with Embedded that are actually null.
When writing all contained fields will be nulled.
Reading back the entity considers an embedded object to be null itself if all contained properties are null within the backing result.

Relates to DATAJDBC-364

Original Pull Request: #151
2019-05-13 09:24:13 +02:00
Christoph Strobl
7f50c92477 DATAJDBC-370 - Polishing.
Re add wither method and add explicit test for immutable value.

Original Pull Request: #151
2019-05-13 09:23:57 +02:00
Jens Schauder
5854922ae8 DATAJDBC-370 - Fixed handling of entities with no withers.
We tried to set all the properties, even when they were already set via constructor.
Fixed it by unifying the three instances where we created and populated instances.

Original Pull Request: #151
2019-05-13 09:21:53 +02:00
Jens Schauder
060e404991 DATAJDBC-370 - Polishing.
Adding a missing issue reference to a test.

Original Pull Request: #151
2019-05-13 09:21:28 +02:00
Oliver Drotbohm
d0c432d029 DATAJDBC-351 - Updated changelog. 2019-05-10 12:57:19 +02:00
Mark Paluch
f43f054eff DATAJDBC-359 - Polishing.
Deprecate remaining DataAccessStrategy types in jdbc.core and create replacements in jdbc.core.convert. Migrate using code to replacement types.

Simplify warnings and if flows. Add since version to deprecations.

Move MyBatisDataAccessStrategyUnitTests from core to mybatis package.

Original pull request: #150.
2019-05-07 15:48:25 +02:00
Jens Schauder
b1c68d901e DATAJDBC-359 - Support for arbitrary chains of entities with or without Id.
Introduced a `ReadingContext` in the `EntityRowMapper` to avoid passing the `ResultSet` and the `path` all over the place.

Added a dependency test to Spring Data Relational and fixed the test failure by moving the PersistentPropertyPathExtension to core.mapping.

Original pull request: #150.
2019-05-07 15:48:10 +02:00
Michael Simons
aea39d99c5 DATAJDBC-365 - Fix typos in readme.
Original pull request: #149.
2019-04-23 09:16:32 +02:00
Michael Simons
eb90efc24a DATAJDBC-361 - Fix minor typos in SqlGenerator.
Original pull request: #148.
2019-04-12 12:29:35 +02:00
Christoph Strobl
c80a334d56 DATAJDBC-337 - After release cleanups. 2019-04-11 12:00:20 +02:00
Christoph Strobl
727af3658f DATAJDBC-337 - Prepare next development iteration. 2019-04-11 12:00:19 +02:00
Christoph Strobl
7d48a3f98a DATAJDBC-337 - Release version 1.1 M3 (Moore). 2019-04-11 11:24:31 +02:00
Christoph Strobl
98fb114750 DATAJDBC-337 - Prepare 1.1 M3 (Moore). 2019-04-11 11:23:56 +02:00
Christoph Strobl
e5d04bf6d8 DATAJDBC-337 - Updated changelog. 2019-04-11 11:23:49 +02:00
Jens Schauder
f499017269 DATAJDBC-357 - Polishing.
Implemented workaround for MySql not supporting offset without Limit.
Using `SELECT 1` as dummy order by since it is documented to be optimized away.
Renamed tests to match the project standard.

See also:

- https://stackoverflow.com/a/44106422
- https://stackoverflow.com/a/271650

Original pull request: #125.
2019-04-09 15:31:02 +02:00