Class ObisCodeConverter

java.lang.Object
energy.eddie.api.agnostic.aiida.ObisCodeConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<ObisCode,String>

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

    • ObisCodeConverter

      public ObisCodeConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(ObisCode obisCode)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<ObisCode,String>
    • convertToEntityAttribute

      public ObisCode convertToEntityAttribute(String code)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<ObisCode,String>