Class ReportConverter

java.lang.Object
fr.enedis.chutney.execution.infra.storage.jpa.ReportConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<String,byte[]>

public class ReportConverter extends Object implements jakarta.persistence.AttributeConverter<String,byte[]>
  • Constructor Details

    • ReportConverter

      public ReportConverter()
  • Method Details

    • convertToDatabaseColumn

      public byte[] convertToDatabaseColumn(String report)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<String,byte[]>
    • convertToEntityAttribute

      public String convertToEntityAttribute(byte[] zippedReport)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<String,byte[]>