Class DoubleListConverter

java.lang.Object
com.maplander.backend.repository.converter.DoubleListConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<List<Double>,Double[]>

public class DoubleListConverter extends Object implements jakarta.persistence.AttributeConverter<List<Double>,Double[]>
  • Constructor Details

    • DoubleListConverter

      public DoubleListConverter()
  • Method Details

    • convertToDatabaseColumn

      public Double[] convertToDatabaseColumn(List<Double> attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<List<Double>,Double[]>
    • convertToEntityAttribute

      public List<Double> convertToEntityAttribute(Double[] dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<List<Double>,Double[]>