Class TranslatedTextConverter

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

public class TranslatedTextConverter extends Object implements jakarta.persistence.AttributeConverter<TranslatedText,String>
Author:
florian
  • Constructor Details

    • TranslatedTextConverter

      public TranslatedTextConverter()
    • TranslatedTextConverter

      public TranslatedTextConverter(Collection<Locale> locales)
  • Method Details

    • convertToDatabaseColumn

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

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