Class StringListConverter

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

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

    • StringListConverter

      public StringListConverter()
  • Method Details

    • convertToDatabaseColumn

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

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