Here the example code for converting LocalDate to java.sql.Date for persisting to db.
With
autoApply = true
property this converter will be apply to all LocalDates so entities can be clean. If you don't want this feature then you can add @Convert(converter = LocalDateConverter.class)
annotation to the fields.