Annotation Interface DateString
Indicates OGM to store dates as String in ISO_8601 format in the database.
Applicable to `java.util.Date` and `java.time.Instant`
- Author:
- Vince Bickers, Gerrit Meier
-
Optional Element Summary
-
Field Summary
-
Field Details
-
FORMAT
- See Also:
-
ISO_8601
- See Also:
-
DEFAULT_ZONE_ID
- See Also:
-
-
Element Details
-
value
String value- Default:
- "yyyy-MM-dd\'T\'HH:mm:ss.SSSXXX"
-
zoneId
String zoneIdSome temporals likeInstant
, representing an instantaneous point in time cannot be formatted with a givenZoneId
. In case you want to format an instant or similar with a default pattern, we assume a zone with the given id and default to UTC which is the same assumption that the predefined patterns inDateTimeFormatter
take.- Returns:
- The zone id to use when applying a custom pattern to an instant temporal.
- Default:
- "UTC"
-
lenient
boolean lenientToggle lenient conversion mode by setting this flag to true (defaults to false). Has to be supported by the corresponding converter.- Returns:
- flag that represents the desired conversion mode.
- Default:
- false
-