@Immutable
public class LocalDateTimeConverter
extends java.lang.Object
implements javax.persistence.AttributeConverter<java.time.LocalDateTime,java.sql.Timestamp>
Constructor and Description |
---|
LocalDateTimeConverter() |
Modifier and Type | Method and Description |
---|---|
java.sql.Timestamp |
convertToDatabaseColumn(java.time.LocalDateTime locDateTime) |
java.time.LocalDateTime |
convertToEntityAttribute(java.sql.Timestamp sqlTimestamp) |
public java.sql.Timestamp convertToDatabaseColumn(java.time.LocalDateTime locDateTime)
convertToDatabaseColumn
in interface javax.persistence.AttributeConverter<java.time.LocalDateTime,java.sql.Timestamp>
public java.time.LocalDateTime convertToEntityAttribute(java.sql.Timestamp sqlTimestamp)
convertToEntityAttribute
in interface javax.persistence.AttributeConverter<java.time.LocalDateTime,java.sql.Timestamp>