Class Jsr310JpaConverters.InstantConverter

java.lang.Object
org.springframework.data.jpa.convert.threeten.Jsr310JpaConverters.InstantConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Instant,Date>
Enclosing class:
Jsr310JpaConverters

public static class Jsr310JpaConverters.InstantConverter extends Object implements jakarta.persistence.AttributeConverter<Instant,Date>
  • Constructor Details

    • InstantConverter

      public InstantConverter()
  • Method Details

    • convertToDatabaseColumn

      @Nullable public Date convertToDatabaseColumn(Instant instant)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Instant,Date>
    • convertToEntityAttribute

      @Nullable public Instant convertToEntityAttribute(Date date)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Instant,Date>