Polishing.
This commit is contained in:
@@ -82,14 +82,11 @@ interface QueryParameterSetter {
|
|||||||
|
|
||||||
if (temporalType != null) {
|
if (temporalType != null) {
|
||||||
|
|
||||||
Object extractedValue = valueExtractor.apply(accessor);
|
var extractedValue = valueExtractor.apply(accessor);
|
||||||
|
|
||||||
final Date value;
|
final Date value = (extractedValue instanceof TypedParameterValue<?> typedParameterValue)
|
||||||
if (extractedValue instanceof TypedParameterValue<?>) {
|
? (Date) typedParameterValue.getValue()
|
||||||
value = (Date) ((TypedParameterValue<?>) extractedValue).getValue();
|
: (Date) extractedValue;
|
||||||
} else {
|
|
||||||
value = (Date) extractedValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// One would think we can simply use parameter to identify the parameter we want to set.
|
// One would think we can simply use parameter to identify the parameter we want to set.
|
||||||
// But that does not work with list valued parameters. At least Hibernate tries to bind them by name.
|
// But that does not work with list valued parameters. At least Hibernate tries to bind them by name.
|
||||||
|
|||||||
Reference in New Issue
Block a user