public class DateLongConverter extends Object implements AttributeConverter<Date,Number>
Date and Long.
Since the value as represented in JSON loses type information and is just numeric,
the converted type used is Number.
Stores values in database as milliseconds from the epoch of 1970-01-01T00:00:00Z.| Constructor and Description |
|---|
DateLongConverter() |
| Modifier and Type | Method and Description |
|---|---|
Date |
toEntityAttribute(Number value) |
Long |
toGraphProperty(Date value) |
public Long toGraphProperty(Date value)
toGraphProperty in interface AttributeConverter<Date,Number>public Date toEntityAttribute(Number value)
toEntityAttribute in interface AttributeConverter<Date,Number>Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.