Class Jsr310JpaConverters.InstantConverter

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

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

    • InstantConverter

      public InstantConverter()
  • Method Details

    • convertToDatabaseColumn

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

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