Package org.hibernate.testing.orm.domain
Class MonetaryAmountConverter
- java.lang.Object
-
- org.hibernate.testing.orm.domain.MonetaryAmountConverter
-
- All Implemented Interfaces:
AttributeConverter<javax.money.MonetaryAmount,Double>
public class MonetaryAmountConverter extends Object implements AttributeConverter<javax.money.MonetaryAmount,Double>
-
-
Constructor Summary
Constructors Constructor Description MonetaryAmountConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
convertToDatabaseColumn(javax.money.MonetaryAmount attribute)
javax.money.MonetaryAmount
convertToEntityAttribute(Double dbData)
-
-
-
Method Detail
-
convertToDatabaseColumn
public Double convertToDatabaseColumn(javax.money.MonetaryAmount attribute)
- Specified by:
convertToDatabaseColumn
in interfaceAttributeConverter<javax.money.MonetaryAmount,Double>
-
convertToEntityAttribute
public javax.money.MonetaryAmount convertToEntityAttribute(Double dbData)
- Specified by:
convertToEntityAttribute
in interfaceAttributeConverter<javax.money.MonetaryAmount,Double>
-
-