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 Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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>