public class InstantStringConverter extends Object implements AttributeConverter<Instant,String>
Instant to String.
Stores values in db as milliseconds from the epoch of 1970-01-01T00:00:00Z, UTC being used to preserve from
timezones problems.| Constructor and Description |
|---|
InstantStringConverter() |
| Modifier and Type | Method and Description |
|---|---|
Instant |
toEntityAttribute(String value) |
String |
toGraphProperty(Instant value) |
public String toGraphProperty(Instant value)
toGraphProperty in interface AttributeConverter<Instant,String>public Instant toEntityAttribute(String value)
toEntityAttribute in interface AttributeConverter<Instant,String>Copyright © 2018 Neo Technology, Inc.. All rights reserved.