public class LocalDateToDateAttributeConverter extends Object implements javax.persistence.AttributeConverter<LocalDate,Date>
AttributeConverter to enable LocalDate data type for entity attributes.
This converter is automatically applyed if present in the ORM auto-scan package list.
Attribute values are expected to be backed by a Date-compatible type in database.
| Constructor and Description |
|---|
LocalDateToDateAttributeConverter() |
| Modifier and Type | Method and Description |
|---|---|
Date |
convertToDatabaseColumn(LocalDate attribute) |
LocalDate |
convertToEntityAttribute(Date dbData) |
Copyright © 2019 The Holon Platform. All rights reserved.