Package de.xima.fc.jpa
Class RgbaQuadrupletConverter
- java.lang.Object
-
- de.xima.fc.jpa.RgbaQuadrupletConverter
-
- All Implemented Interfaces:
javax.persistence.AttributeConverter<RgbaQuadruplet,String>
public class RgbaQuadrupletConverter extends Object implements javax.persistence.AttributeConverter<RgbaQuadruplet,String>
JPA converter for colors represented asRgbaQuadruplet
.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description RgbaQuadrupletConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
convertToDatabaseColumn(RgbaQuadruplet attribute)
RgbaQuadruplet
convertToEntityAttribute(String dbData)
-
-
-
Method Detail
-
convertToDatabaseColumn
public String convertToDatabaseColumn(RgbaQuadruplet attribute)
- Specified by:
convertToDatabaseColumn
in interfacejavax.persistence.AttributeConverter<RgbaQuadruplet,String>
-
convertToEntityAttribute
public RgbaQuadruplet convertToEntityAttribute(String dbData)
- Specified by:
convertToEntityAttribute
in interfacejavax.persistence.AttributeConverter<RgbaQuadruplet,String>
-
-