Class Jsr310JpaConverters.LocalTimeConverter

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

public static class Jsr310JpaConverters.LocalTimeConverter extends Object implements jakarta.persistence.AttributeConverter<@Nullable LocalTime, @Nullable Date>
Author:
Oliver Gierke, Kevin Peters, Greg Turnquist
  • Constructor Details

    • LocalTimeConverter

      public LocalTimeConverter()
  • Method Details

    • convertToDatabaseColumn

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

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