Annotation Interface DateString


@Retention(RUNTIME) @Target(FIELD) @Inherited @ConvertWith(converterFactory=org.springframework.data.neo4j.core.support.DateStringConverterFactory.class) @API(status=STABLE, since="6.0") public @interface DateString
Indicates SDN 6 to store dates as String in the database. Applicable to Date and Instant.
Since:
6.0
Author:
Michael J. Simons
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The ID of the default timezone to use.
    static final String
    Pattern conforming to an ISO 8601 date time string (without timezone).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
    Some temporals like Instant, representing an instantaneous point in time cannot be formatted with a given ZoneId.
  • Field Details

  • Element Details

    • value

      @AliasFor("format") String value
      Default:
      "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
    • format

      @AliasFor("value") String format
      Default:
      "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
    • zoneId

      String zoneId
      Some temporals like Instant, representing an instantaneous point in time cannot be formatted with a given ZoneId. 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 in DateTimeFormatter take.
      Returns:
      The zone id to use when applying a custom pattern to an instant temporal.
      Default:
      "UTC"