Commit Graph

430 Commits

Author SHA1 Message Date
Jens Schauder
ca2d2182d2 DATAJDBC-219 - Polishing.
DeleteWithVersion doesn't require an entity anymore.
Added the `@author` and `@since` tags where they were missing.
Formatting.
Added documentation.

Original pull request: #166.
2019-12-02 08:56:33 +01:00
Tyler Van Gorder
f7a04dcc2b DATAJDBC-219 - Implements optimistic record locking.
Optimistic locking is based on a numeric attribute annotated with `@Version` on the aggregate root.
That attribute is increased before any save operation and checked during updates to ensure that the database state hasn't changed since loading the aggregate.

Original pull request: #166.
2019-12-02 08:55:21 +01:00
Jens Schauder
8d0441c2e0 DATAJDBC-448 - Fixes documentation mistake. 2019-11-26 15:11:32 +01:00
detinho
ec62147dbe DATAJDBC-447 - Fix JDK 8 Travis build.
Original pull request: #181.
2019-11-20 13:46:37 +01:00
Mark Paluch
e024c983ad DATAJDBC-440 - Updated changelog. 2019-11-18 12:43:27 +01:00
Mark Paluch
cc92ce25b8 DATAJDBC-439 - Updated changelog. 2019-11-18 12:16:26 +01:00
Mark Paluch
9129622d1c DATAJDBC-417 - Polishing.
Reformat code. Fix collection-like node creation to cast to Iterable and consider arrays.

Original pull request: #169.
2019-11-13 13:34:13 +01:00
Jens Schauder
cf9b480ea2 DATAJDBC-417 - Fixed saving an entity containing a null embeddable with a reference to a further entity.
Constructing the DbActions assumed that the parent of a path exists (i.e. is not null) and created parent nodes.

Original pull request: #169.
2019-11-13 13:34:08 +01:00
Jens Schauder
88dbbbaf41 DATAJDBC-417 - Polishing.
Removed superfluous method.

Original pull request: #169.
2019-11-13 13:34:01 +01:00
Jens Schauder
92b6b0486c DATAJDBC-438 - Polishing.
Code style.
Choose better matching exception.
2019-11-13 13:02:44 +01:00
mhyeon-lee
dfaf0ac2e6 DATAJDBC-438 - Throw an exception if a save operation updates zero rows.
Original pull request: #178.
2019-11-13 13:02:44 +01:00
Jens Schauder
93f0440f14 DATAJDBC-417 - Fixed numbering/indentation of MyBatis section. 2019-11-12 11:26:33 +01:00
Christoph Strobl
041cdc103e DATAJDBC-423 - Updated changelog. 2019-11-04 15:39:56 +01:00
Christoph Strobl
17970ded5d DATAJDBC-422 - Updated changelog. 2019-11-04 10:34:49 +01:00
Jens Schauder
3e4e874aa8 DATAJDBC-431 - Polishing.
Improved and corrected nullability annotations. Fixed broken Javadoc.

Original pull request: #175.
2019-10-25 10:00:40 +02:00
Jens Schauder
1774e3a3a7 DATAJDBC-431 - ReadOnlyProperty now no longer written.
The problem was that the SqlGenerator honored the annotation but they were included as query parameters and therefore automatically added back again.

Also:

* Simplified the relevant filter in the SqlGenerator.
* Introduced a meta annotation for running tests only agains HsqlDb.

Original pull request: #175.
2019-10-25 10:00:12 +02:00
Mark Paluch
9e0f930da7 DATAJDBC-437 - Polishing.
Remove unused imports.

Original pull request: #177.
2019-10-25 09:54:24 +02:00
Jens Schauder
8f495891a2 DATAJDBC-437 - In strict mode we only claim repositories for domain types with @Table annotation.
Before this change Spring Data JDBC didn't specify any identifying annotation and therefore would claim all or no repository depending on the the version of Spring Data Commons.

Also added the RepositoryFactorySupport to spring.factory in order to support detection of multiple RepositoryFactorySupport implementations on the classpath.

Related ticket: DATACMNS-1596.
Original pull request: #177.
2019-10-25 09:53:54 +02:00
Jens Schauder
b74c82c724 DATAJDBC-436 - Replace @Wither with @With.
lombok.experimental.Wither is now deprecated and to be replaced by lombok.With which this change does.
2019-10-21 08:47:31 +02:00
Jens Schauder
c5c2d49b15 DATAJDBC-432 - Polishing.
Null handling in test.
2019-10-21 08:18:55 +02:00
Jens Schauder
7d8c78e9ec DATAJDBC-432 - Extracted AggregateChangeExecutor from AggregateChange.
This separates the execution plan of  a change encoded in the AggregateChange from its execution encoded in the AggregateChangeExecutor.
2019-10-21 08:18:55 +02:00
Jens Schauder
448f0e0d39 DATAJDBC-428 - Polishing.
Code formatting.
2019-10-16 14:34:24 +02:00
Jens Schauder
6e715cb6b3 DATAJDBC-427 - Polishing.
Used isEqual assertions instead of directly calling equals.
Code formatting.
2019-10-16 14:32:17 +02:00
mhyeon-lee
cef41525da DATAJDBC-428 - Fixes BasicJdbcConverter readValue for immutable entity with AggregateReference field.
Original pull request: #172.
2019-10-16 12:09:00 +02:00
mhyeon-lee
a6b3144e66 DATAJDBC-427 - IdOnlyAggregateReference no supports equality.
Original pull request: #172.
2019-10-16 12:08:02 +02:00
Marcos Vinícius da Silva
7fff659a17 DATAJDBC-434 - Added CONTRIBUTING.adoc.
The link to  CONTRIBUTING.adoc link was broken as the file was missing on this repository.
Added based on the pattern found in spring-data-commons.

Original pull request: #174.
2019-10-16 11:55:52 +02:00
Mark Paluch
1314081c52 DATAJDBC-291 - Polishing.
Introduce factory methods for AggregateChange save/delete object creation. Replace computeIfAbsent pattern with appropriate methods. Add indirection for staged values traversal. Rename CascadingValuesLookup to StagedValues.
Javadoc, formatting.

Original pull request: #173.
2019-10-15 15:53:00 +02:00
Jens Schauder
feb60c8560 DATAJDBC-291 - Setting DB-generated ids now works across collections.
Original pull request: #173.
2019-10-15 15:52:47 +02:00
mhyeon-lee
2a0729d7fe DATAJDBC-291 - Add failing test for setting ids in nested entities.
Original pull request: #158, #173.
2019-10-15 15:52:32 +02:00
Mark Paluch
4434a0f552 DATAJDBC-403 - After release cleanups. 2019-09-30 16:17:29 +02:00
Mark Paluch
9277797d37 DATAJDBC-403 - Prepare next development iteration. 2019-09-30 16:17:28 +02:00
Mark Paluch
2c356f6346 DATAJDBC-403 - Release version 1.1 GA (Moore). 2019-09-30 15:51:07 +02:00
Mark Paluch
eb3c87f822 DATAJDBC-403 - Prepare 1.1 GA (Moore). 2019-09-30 15:50:43 +02:00
Mark Paluch
3b61b995e7 DATAJDBC-403 - Updated changelog. 2019-09-30 15:50:34 +02:00
Mark Paluch
eb4b2f0633 DATAJDBC-402 - Updated changelog. 2019-09-30 11:16:16 +02:00
Mark Paluch
3f7bdb77f7 DATAJDBC-419 - Polishing.
Inherit plugin versions for dependency and surefire plugins.
2019-09-25 11:23:49 +02:00
Mark Paluch
0069cc7f07 DATAJDBC-419 - Inherit Jacoco configuration from parent pom. 2019-09-25 11:23:49 +02:00
Jens Schauder
8feb7fbf71 DATAJDBC-413 - Polishing.
Removed excessive logging in tests.
Again.
2019-09-13 09:12:26 +02:00
Jens Schauder
1fe39cf1c9 DATAJDBC-413 - Use proper https URLs for MyBatis DTDs.
See also: https://github.com/mybatis/mybatis-3/issues/1559
2019-09-13 09:08:02 +02:00
Mark Paluch
4d1fff1c19 DATAJDBC-411 - Set project.root in module poms to correctly generate Javadoc.
By setting project.root, Javadoc is aggregated in the parent pom target so it can be collected during the distribution build.

Original pull request: #168.
2019-09-12 07:54:26 +02:00
Mark Paluch
fb0cd1fe70 DATAJDBC-410 - Polishing.
Tweak Javadoc.

Original pull request: #167.
2019-09-11 16:35:24 +02:00
Jens Schauder
85bf1e6dc7 DATAJDBC-410 - Properly render NOT IN clauses.
See also: https://github.com/spring-projects/spring-data-r2dbc/issues/177
Original pull request: #167.
2019-09-11 16:35:08 +02:00
Mark Paluch
045c894d2e DATAJDBC-404 - After release cleanups. 2019-09-06 10:21:56 +02:00
Mark Paluch
5380daac6f DATAJDBC-404 - Prepare next development iteration. 2019-09-06 10:21:54 +02:00
Mark Paluch
c2f11ed104 DATAJDBC-404 - Release version 1.1 RC3 (Moore). 2019-09-06 10:10:42 +02:00
Mark Paluch
cece3471d6 DATAJDBC-404 - Prepare 1.1 RC3 (Moore). 2019-09-06 10:10:12 +02:00
Mark Paluch
7e77866875 DATAJDBC-404 - Updated changelog. 2019-09-06 10:10:02 +02:00
Jens Schauder
47c8739d4c DATAJDBC-405 - Fixes asciidoctor includes.
Includes from Spring Data Commons failed because they where made relative from the asciidoc documents.
But the documents get moved before asciidoc is executed.

Corrected the environment variable used for building the reference to account for this.
Removed one manual fix which breaks with the proper fix.
2019-08-21 17:47:49 +02:00
Greg Turnquist
a234e51a2b DATAJDBC-376 - Force check for updates. 2019-08-05 10:55:37 -05:00
Mark Paluch
7ab3cd83c8 DATAJDBC-388 - After release cleanups. 2019-08-05 15:53:02 +02:00