java.lang.Object
com.broadleafcommerce.common.jpa.autoconfigure.converter.standard.LocaleConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Locale,String>

public class LocaleConverter extends Object implements jakarta.persistence.AttributeConverter<Locale,String>
  • Constructor Details

    • LocaleConverter

      public LocaleConverter()
  • Method Details

    • convertToDatabaseColumn

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

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