Class NumberListConverter

java.lang.Object
io.goobi.viewer.dao.converter.NumberListConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<List<Long>,String>

public class NumberListConverter extends Object implements jakarta.persistence.AttributeConverter<List<Long>,String>
Store simple strings in single database field
Author:
florian
  • Constructor Details

    • NumberListConverter

      public NumberListConverter()
  • Method Details

    • convertToDatabaseColumn

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

      public List<Long> convertToEntityAttribute(String dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<List<Long>,String>