package com.kristijangeorgiev.softdelete.util;

import java.sql.Timestamp;
import java.time.LocalDateTime;

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

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

@Converter(autoApply = true)
public class LocalDateAttributeConverter implements AttributeConverter<LocalDateTime, Timestamp> {

	@Override
	public Timestamp convertToDatabaseColumn(LocalDateTime locDateTime) {
		return (locDateTime == null ? null : Timestamp.valueOf(locDateTime));
	}

	@Override
	public LocalDateTime convertToEntityAttribute(Timestamp sqlTimestamp) {
		return (sqlTimestamp == null ? null : sqlTimestamp.toLocalDateTime());
	}
}
@@ -510,16 +510,18 @@
 Time loc
+al
 DateTime
@@ -533,24 +533,26 @@
 %09return (loc
+al
 DateTime == 
@@ -586,16 +586,18 @@
 ueOf(loc
+al
 DateTime
@@ -672,20 +672,17 @@
 mestamp 
-sqlT
+t
 imestamp
@@ -695,20 +695,17 @@
 return (
-sqlT
+t
 imestamp
@@ -726,12 +726,9 @@
 l : 
-sqlT
+t
 imes
@@ -756,8 +756,9 @@
 ));%0A%09%7D%0A%7D
+%0A

Update LocalDateAttributeConverter.java