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