package org.openur.module.persistence.rdbms.entity;

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

import javax.persistence.AttributeConverter;

public class LocalDateTimePersistenceConverter
	implements AttributeConverter<LocalDateTime, Timestamp>
{
	@Override
	public Timestamp convertToDatabaseColumn(LocalDateTime attribute)
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public LocalDateTime convertToEntityAttribute(Timestamp dbData)
	{
		// TODO Auto-generated method stub
		return null;
	}
}

@@ -151,16 +151,81 @@
 verter;%0A
+import javax.persistence.Converter;%0A%0A@Converter(autoApply = true)
 %0Apublic 
@@ -394,72 +394,63 @@
 ime 
-attribute)%0A%09%7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null
+entityValue)%0A%09%7B%0A%09%09return Timestamp.valueOf(entityValue)
 ;%0A%09%7D
@@ -524,68 +524,65 @@
 mp d
-bD
 ata
-)%0A%09%7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null
+baseValue)%0A%09%7B%0A%09%09return databaseValue.toLocalDateTime()
 ;%0A%09%7D

add DateTimeConverter to JPA-Entities