package com.kristijangeorgiev.softdelete.util;

import java.sql.Date;
import java.time.LocalDate;

import javax.persistence.AttributeConverter;
import javax.persistence.Converter;

/**
 * 
 * @author Kristijan Georgiev
 * 
 *         Custom converter class that enables usage of LocalDateTime with the
 *         DB
 *
 */

@Converter(autoApply = true)
public class LocalDateTimeAttributeConverter implements AttributeConverter<LocalDate, Date> {

	@Override
	public Date convertToDatabaseColumn(LocalDate locDate) {
		return (locDate == null ? null : Date.valueOf(locDate));
	}

	@Override
	public LocalDate convertToEntityAttribute(Date sqlDate) {
		return (sqlDate == null ? null : sqlDate.toLocalDate());
	}
}
@@ -502,16 +502,18 @@
 Date loc
+al
 Date) %7B%0A
@@ -521,24 +521,26 @@
 %09return (loc
+al
 Date == null
@@ -565,16 +565,18 @@
 ueOf(loc
+al
 Date));%0A
@@ -638,20 +638,17 @@
 te(Date 
-sqlD
+d
 ate) %7B%0A%09
@@ -656,20 +656,17 @@
 return (
-sqlD
+d
 ate == n
@@ -682,12 +682,9 @@
 l : 
-sqlD
+d
 ate.
@@ -703,8 +703,9 @@
 ));%0A%09%7D%0A%7D
+%0A

Update LocalDateTimeAttributeConverter.java