@Override
public String convertToDatabaseColumn(YearMonth yearmonth)
{
+ if (yearmonth == null)
+ return null;
return yearmonth.toString();
}
@Override
public YearMonth convertToEntityAttribute(String string)
{
+ if (string == null)
+ return null;
return YearMonth.parse(string);
}
}