Package org.neo4j.ogm.typeconversion
Class DateStringConverter
java.lang.Object
org.neo4j.ogm.typeconversion.DateStringConverter
- All Implemented Interfaces:
AttributeConverter<Date,
String>
By default the OGM will map date objects to UTC-based ISO8601 compliant
String values when being stored as a node / relationship property
Users can override this behaviour for Date objects using
the appropriate annotations:
DateString.FORMAT
will convert between dates and strings
using a user defined date format, e.g. "yy-MM-dd"
DateLong
will read and write dates as Long values in the database.- Author:
- Vince Bickers, Gerrit Meier
-
Constructor Summary
ConstructorDescriptionDateStringConverter
(String userDefinedFormat) DateStringConverter
(String userDefinedFormat, boolean lenient) -
Method Summary
-
Constructor Details
-
DateStringConverter
-
DateStringConverter
-
-
Method Details
-
toGraphProperty
- Specified by:
toGraphProperty
in interfaceAttributeConverter<Date,
String>
-
toEntityAttribute
- Specified by:
toEntityAttribute
in interfaceAttributeConverter<Date,
String>
-