@ApplicationScoped public class ZonedDateTimeAdapter extends Object
ZonedDateTime into Timestamp.| Constructor and Description |
|---|
ZonedDateTimeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
convertToDatabaseColumn(ZonedDateTime attribute) |
ZonedDateTime |
convertToEntityAttribute(Date dbData) |
ZonedDateTime |
convertToEntityAttribute(Timestamp dbData) |
public Timestamp convertToDatabaseColumn(ZonedDateTime attribute)
public ZonedDateTime convertToEntityAttribute(Timestamp dbData)
public ZonedDateTime convertToEntityAttribute(Date dbData)
Copyright © 2015–2016. All rights reserved.