Class PeriodConverter

java.lang.Object
energy.eddie.dataneeds.persistence.PeriodConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Period,String>

public class PeriodConverter extends Object implements jakarta.persistence.AttributeConverter<Period,String>
  • Constructor Details

    • PeriodConverter

      public PeriodConverter()
  • Method Details

    • convertToDatabaseColumn

      @Nullable public String convertToDatabaseColumn(Period period)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Period,String>
    • convertToEntityAttribute

      @Nullable public Period convertToEntityAttribute(String dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Period,String>