BAEL-4468: Fix nullSafeSet method (#9791)

This commit is contained in:
kwoyke 2020-07-30 07:57:02 +02:00 committed by GitHub
parent 6889e238ff
commit a623d1714f
1 changed files with 2 additions and 0 deletions

View File

@ -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());