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:
parent
eb9bb2d82f
commit
fa8571c706
|
@ -107,6 +107,10 @@ public class BigDecimalTypeDescriptor extends AbstractClassTypeDescriptor<BigDec
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( value instanceof BigDecimal ) {
|
||||||
|
return (BigDecimal) value;
|
||||||
|
}
|
||||||
|
|
||||||
if ( value instanceof Number ) {
|
if ( value instanceof Number ) {
|
||||||
return BigDecimal.valueOf( ( (Number) value ).doubleValue() );
|
return BigDecimal.valueOf( ( (Number) value ).doubleValue() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue