Support for type coercion for values passed as ids and as query parameter bindings

- widening coercions
- valid (no over/under flow) narrowing coercions
- JpaCompliance setting
This commit is contained in:
Steve Ebersole 2021-05-04 07:42:06 -05:00
parent eb9bb2d82f
commit fa8571c706
1 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,10 @@ public class BigDecimalTypeDescriptor extends AbstractClassTypeDescriptor<BigDec
return null;
}
if ( value instanceof BigDecimal ) {
return (BigDecimal) value;
}
if ( value instanceof Number ) {
return BigDecimal.valueOf( ( (Number) value ).doubleValue() );
}