DATAJDBC-341 - Polishing.

Remove SpecialColumnValue in favor of JdbcPropertyValueProvider.hasProperty(…). Rename ResultSetWrapper to ResultSetAccessor. Replace ResultSetAccessor usage in JdbcConverter with ResultSet to avoid visibility issues.

Original pull request: #201.
This commit is contained in:
Mark Paluch
2020-03-31 11:45:53 +02:00
parent 95ca73df2f
commit c0803ddafe
10 changed files with 137 additions and 131 deletions

View File

@@ -444,15 +444,15 @@ For converting the query result into entities the same `RowMapper` is used by de
The query you provide must match the format the `RowMapper` expects.
Columns for all properties that are used in the constructor of an entity must be provided.
Columns for properties that get set via setter, wither or field access are optional.
Properties that don't have a matching column will not get set.
The query is used for populating the aggregate root, embedded entities and one to one relationships including arrays of primitive types which get stored and loaded as SQL-array-types.
For maps, lists, sets and arrays of entities separate queries get generated.
Properties that don't have a matching column in the result will not be set.
The query is used for populating the aggregate root, embedded entities and one-to-one relationships including arrays of primitive types which get stored and loaded as SQL-array-types.
Separate queries are generated for maps, lists, sets and arrays of entities.
NOTE: Spring fully supports Java 8s parameter name discovery based on the `-parameters` compiler flag. By using this flag in your build as an alternative to debug information, you can omit the `@Param` annotation for named parameters.
NOTE: Spring fully supports Java 8s parameter name discovery based on the `-parameters` compiler flag.
By using this flag in your build as an alternative to debug information, you can omit the `@Param` annotation for named parameters.
NOTE: Spring Data JDBC supports only named parameters.
[[jdbc.query-methods.named-query]]
=== Named Queries

View File

@@ -10,7 +10,7 @@ This section covers the significant changes for each version.
* Support for `PagingAndSortingRepository`.
* Full Support for H2.
* All SQL identifiers know get quoted by default.
* Missing column no longer cause exceptions as long as they are not required by the persitence constructor.
* Missing columns no longer cause exceptions.
[[new-features.1-1-0]]
== What's New in Spring Data JDBC 1.1