Package org.neo4j.ogm.typeconversion
Class DateLongConverter
java.lang.Object
org.neo4j.ogm.typeconversion.DateLongConverter
- All Implemented Interfaces:
AttributeConverter<Date,
Number>
Converter to convert between
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
.- Author:
- Vince Bickers, Luanne Misquitta
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DateLongConverter
public DateLongConverter()
-
-
Method Details
-
toGraphProperty
- Specified by:
toGraphProperty
in interfaceAttributeConverter<Date,
Number>
-
toEntityAttribute
- Specified by:
toEntityAttribute
in interfaceAttributeConverter<Date,
Number>
-