class LocalDateConverter implements AttributeConverter<LocalDate, Date> {

    @Override
    public LocalDate convertToEntityAttribute(Date date) {
        LOGGER.finest(() -> "Converting " + date + " to attrib");
        if (null == date) {
            return null;
        }

        return date.toLocalDate();
    }

}