Class Jsr310TimestampBasedConverters

java.lang.Object
org.springframework.data.jdbc.core.convert.Jsr310TimestampBasedConverters

public abstract class Jsr310TimestampBasedConverters extends Object
Helper class to register JSR-310 specific Converter implementations. These converters are based on Timestamp instead of Date and therefore preserve nanosecond precision
Since:
2.2
Author:
Jens Schauder
See Also:
  • Constructor Details

    • Jsr310TimestampBasedConverters

      public Jsr310TimestampBasedConverters()
  • Method Details

    • getConvertersToRegister

      public static Collection<Converter<?,?>> getConvertersToRegister()
      Returns the converters to be registered. Note that the Jsr310TimestampBasedConverters.LocalDateTimeToTimestampConverter is not included, since many database don't need that conversion. Databases that do need it, should include it in the conversions offered by their respective dialect.
      Returns:
      a collection of converters. Guaranteed to be not null.