public final class LocalDateTimeConverter extends Object implements javax.persistence.AttributeConverter<LocalDateTime,Timestamp>
LocalDateTime
instances and Timestamp ones. This allows LocalDateTime objects to
be directly persisted as SQL Timestamps at the database level, and vice versa.| Constructor and Description |
|---|
LocalDateTimeConverter() |
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
convertToDatabaseColumn(LocalDateTime value) |
LocalDateTime |
convertToEntityAttribute(Timestamp value) |
public Timestamp convertToDatabaseColumn(LocalDateTime value)
convertToDatabaseColumn in interface javax.persistence.AttributeConverter<LocalDateTime,Timestamp>public LocalDateTime convertToEntityAttribute(Timestamp value)
convertToEntityAttribute in interface javax.persistence.AttributeConverter<LocalDateTime,Timestamp>Copyright © 2017. All rights reserved.