java.lang.Object
com.broadleafcommerce.common.jpa.autoconfigure.converter.currency.CurrencyUnitConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<javax.money.CurrencyUnit,String>

public class CurrencyUnitConverter extends Object implements jakarta.persistence.AttributeConverter<javax.money.CurrencyUnit,String>
  • Constructor Details

    • CurrencyUnitConverter

      public CurrencyUnitConverter()
  • Method Details

    • convertToDatabaseColumn

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

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