We now raise the exceptions from `NamedParameterJdbcTemplate` directly.
If you used to extract the `cause` of a `DbActionExecutionException` you should now catch that Exception directly.
Original pull request #1956Closes#831
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>
Deprecate original DialectResolver and JdbcArrayColumns as they've been in the wrong package and introduce replacements in the dialect package. Let deprecated types extend from their replacements to retain compatibility.
Make instance holders final, fix Javadoc typos, update reference docs.
Original pull request #2036
See #2031
Sequence details are now maintained on the property level instead of using the entity level. This is a more accurate representation of the underlying model and that properties are annotated and not entities. It also allows future extension of expanding sequence support to general properties.
Extract delegate for sequence generation. Move types to org.springframework.data.jdbc.core.convert to resolve package cycles.
See #2003
Original pull request: #2005
Refine assignment flow and use early returns where possible. Cache empty MapSqlParameterSource. Reduce dependency on RelationalMappingContext using a lower-level abstraction signature. Simplify names. Use default value check from Commons. Fix log warning message. Add missing since tags.
Remove superfluous annotations and redundant code. Tweak documentation wording.
Closes#2003
Original pull request: #2005
Reference issues in tests comments.
Removed `DisabledOnDatabase`
IdGeneration default methods related to sequence generation are now internally consistent.
Formatting and naming.
IdGeneration offers simple support by default.
Fix exception in oracle integration test setup
Use SqlIdentifier for sequence names
Remove SEQUENCE id source
Added documentation
See #1923
Original pull request #1955
Ids can be annotated with @Sequence to specify a sequence to pull id values from.
Closes#1923
Original pull request #1955
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>
Some accidential changes removed.
Signed-off-by: schauder <jens.schauder@broadcom.com>
Collection valued attributes now get ignored.
Before RelationalExampleMapper tried to generate predicates for these, resulting in invalid SQL.
Closes#1969
We gather immutable entities of which the id has changed, in order to set them as values in the parent entity.
We now also gather unchanged entities.
So they get set with the changed one in the parent.
Closes#1907
Original pull request: #1920
SpEL expressions in queries get processed in two steps:
1. First SpEL expressions outside parameters are detected and processed.
This is done with a `StandardEvaluationContext` with the variables `tableName` and `qualifiedTableName` added.
This step is introduced by this commit.
2. Parameters made up by SpEL expressions are processed as usual.
Closes#1856
Original pull request #1863