Package org.neo4j.ogm.typeconversion
Class LocalDateStringConverter
java.lang.Object
org.neo4j.ogm.typeconversion.LocalDateStringConverter
- All Implemented Interfaces:
AttributeConverter<LocalDate,
String>
public class LocalDateStringConverter
extends Object
implements AttributeConverter<LocalDate,String>
Converter to convert between
LocalDate
and String
.
Stores values in database as string in format specified by
DateTimeFormatter.ISO_LOCAL_DATE
.- Author:
- Nicolas Mervaillie, RĂ³bert Papp, Michael J. Simons
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoEntityAttribute
(String value) toGraphProperty
(LocalDate value)
-
Constructor Details
-
LocalDateStringConverter
public LocalDateStringConverter()
-
-
Method Details
-
toGraphProperty
- Specified by:
toGraphProperty
in interfaceAttributeConverter<LocalDate,
String>
-
toEntityAttribute
- Specified by:
toEntityAttribute
in interfaceAttributeConverter<LocalDate,
String>
-