Class CurrencyUnitConverter

java.lang.Object
google.registry.persistence.converter.CurrencyUnitConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<org.joda.money.CurrencyUnit,String>

public class CurrencyUnitConverter extends Object
JPA converter for CurrencyUnits.
  • Constructor Details

    • CurrencyUnitConverter

      public CurrencyUnitConverter()
  • Method Details

    • convertToEntityAttribute

      @Nullable public org.joda.money.CurrencyUnit convertToEntityAttribute(@Nullable String columnValue)
    • convertToDatabaseColumn

      @Nullable public String convertToDatabaseColumn(@Nullable org.joda.money.CurrencyUnit entity)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<T,String>