Class MonetaryAmountConverter

  • All Implemented Interfaces:
    jakarta.persistence.AttributeConverter<javax.money.MonetaryAmount,​Double>

    public class MonetaryAmountConverter
    extends Object
    implements jakarta.persistence.AttributeConverter<javax.money.MonetaryAmount,​Double>
    • Constructor Detail

      • MonetaryAmountConverter

        public MonetaryAmountConverter()
    • Method Detail

      • convertToDatabaseColumn

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

        public javax.money.MonetaryAmount convertToEntityAttribute​(Double dbData)
        Specified by:
        convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<javax.money.MonetaryAmount,​Double>