public class LocalDateTimeConverter extends Object implements Converter<LocalDateTime,Timestamp>
LocalDateTime to a Timestamp for Java 8.| Constructor and Description |
|---|
LocalDateTimeConverter() |
| Modifier and Type | Method and Description |
|---|---|
LocalDateTime |
convertToMapped(Class<? extends LocalDateTime> type,
Timestamp value)
Convert the persisted type B to the mapped type A.
|
Timestamp |
convertToPersisted(LocalDateTime value)
Convert the mapped type A to the persisted type B.
|
Class<LocalDateTime> |
getMappedType() |
Integer |
getPersistedSize() |
Class<Timestamp> |
getPersistedType() |
public Class<LocalDateTime> getMappedType()
getMappedType in interface Converter<LocalDateTime,Timestamp>public Class<Timestamp> getPersistedType()
getPersistedType in interface Converter<LocalDateTime,Timestamp>public Integer getPersistedSize()
getPersistedSize in interface Converter<LocalDateTime,Timestamp>public Timestamp convertToPersisted(LocalDateTime value)
ConverterconvertToPersisted in interface Converter<LocalDateTime,Timestamp>value - to convertpublic LocalDateTime convertToMapped(Class<? extends LocalDateTime> type, Timestamp value)
ConverterconvertToMapped in interface Converter<LocalDateTime,Timestamp>type - the type to convertvalue - value to convert