BAEL-4468: Fix nullSafeSet method (#9791)
This commit is contained in:
parent
6889e238ff
commit
a623d1714f
|
@ -57,6 +57,8 @@ public class PhoneNumberType implements UserType {
|
|||
|
||||
if (Objects.isNull(value)) {
|
||||
st.setNull(index, Types.INTEGER);
|
||||
st.setNull(index+1, Types.INTEGER);
|
||||
st.setNull(index+2, Types.INTEGER);
|
||||
} else {
|
||||
PhoneNumber employeeNumber = (PhoneNumber) value;
|
||||
st.setInt(index,employeeNumber.getCountryCode());
|
||||
|
|
Loading…
Reference in New Issue