Constructor and Description |
---|
LocalDateConverter() |
Modifier and Type | Method and Description |
---|---|
LocalDate |
convertToMapped(Class<? extends LocalDate> type,
Date value)
Convert the persisted type B to the mapped type A.
|
Date |
convertToPersisted(LocalDate value)
Convert the mapped type A to the persisted type B.
|
Class<LocalDate> |
getMappedType() |
Integer |
getPersistedSize() |
Class<Date> |
getPersistedType() |
public Class<LocalDate> getMappedType()
getMappedType
in interface Converter<LocalDate,Date>
public Class<Date> getPersistedType()
getPersistedType
in interface Converter<LocalDate,Date>
public Integer getPersistedSize()
getPersistedSize
in interface Converter<LocalDate,Date>
public Date convertToPersisted(LocalDate value)
Converter
convertToPersisted
in interface Converter<LocalDate,Date>
value
- to convertpublic LocalDate convertToMapped(Class<? extends LocalDate> type, Date value)
Converter
convertToMapped
in interface Converter<LocalDate,Date>
type
- the type to convertvalue
- value to convert