Class IntegerListConverter

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

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

    • IntegerListConverter

      public IntegerListConverter()
  • Method Details

    • convertToDatabaseColumn

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

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