Class LocalDateConverter

java.lang.Object
google.registry.persistence.converter.LocalDateConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<org.joda.time.LocalDate,Date>

public class LocalDateConverter extends Object implements jakarta.persistence.AttributeConverter<org.joda.time.LocalDate,Date>
JPA converter for LocalDate, to/from Date.
  • Constructor Details

    • LocalDateConverter

      public LocalDateConverter()
  • Method Details

    • convertToDatabaseColumn

      public Date convertToDatabaseColumn(org.joda.time.LocalDate attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<org.joda.time.LocalDate,Date>
    • convertToEntityAttribute

      public org.joda.time.LocalDate convertToEntityAttribute(Date dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<org.joda.time.LocalDate,Date>