public class InstantStringConverter extends Object implements AttributeConverter<Instant,String>
Instant and String.
Stores values in database as string in format specified by
DateTimeFormatter.ISO_INSTANT.
UTC time zone is being used to prevent timezones problems.| Constructor and Description |
|---|
InstantStringConverter() |
InstantStringConverter(String userDefinedFormat,
boolean lenient)
Deprecated.
Since 3.2.10, will be removed in 4.0. Use
InstantStringConverter(String, String, boolean). |
InstantStringConverter(String userDefinedFormat,
String zoneId,
boolean lenient) |
| Modifier and Type | Method and Description |
|---|---|
Instant |
toEntityAttribute(String value) |
String |
toGraphProperty(Instant value) |
public InstantStringConverter()
@Deprecated public InstantStringConverter(String userDefinedFormat, boolean lenient)
InstantStringConverter(String, String, boolean).userDefinedFormat - lenient - public String toGraphProperty(Instant value)
toGraphProperty in interface AttributeConverter<Instant,String>public Instant toEntityAttribute(String value)
toEntityAttribute in interface AttributeConverter<Instant,String>Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.