public class LocalDateTimeConverter extends Object implements AttributeConverter<LocalDateTime,Date>
LocalDateTimeConverter is an attribute converter for LocalDateTime to Date.
LocalDateTime the type of the entity attribute
Date the type of the database column| Constructor and Description |
|---|
LocalDateTimeConverter() |
| Modifier and Type | Method and Description |
|---|---|
Date |
convertToDatabaseColumn(LocalDateTime date) |
LocalDateTime |
convertToEntityAttribute(Date value) |
public Date convertToDatabaseColumn(LocalDateTime date)
convertToDatabaseColumn in interface AttributeConverter<LocalDateTime,Date>public LocalDateTime convertToEntityAttribute(Date value)
convertToEntityAttribute in interface AttributeConverter<LocalDateTime,Date>Copyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.