Class IntArrayToListConverter

java.lang.Object
com.dieselpoint.norm.converter.IntArrayToListConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<List<Integer>,Array>

public class IntArrayToListConverter extends Object implements javax.persistence.AttributeConverter<List<Integer>,Array>
  • Constructor Details

    • IntArrayToListConverter

      public IntArrayToListConverter()
  • Method Details

    • convertToDatabaseColumn

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

      public List<Integer> convertToEntityAttribute(Array dbData)
      Specified by:
      convertToEntityAttribute in interface javax.persistence.AttributeConverter<List<Integer>,Array>