Package tenapull.data.persistence
Class Hash.Converter
java.lang.Object
tenapull.data.persistence.Hash.Converter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<Hash,byte[]>
- Enclosing class:
- Hash
public static class Hash.Converter extends java.lang.Object implements javax.persistence.AttributeConverter<Hash,byte[]>
Converts Hash instances back and forth between the database varbinary datatype
and the hash fields in the ORM.
-
Constructor Summary
Constructors Constructor Description Converter()
-
Method Summary
Modifier and Type Method Description byte[]
convertToDatabaseColumn(Hash hash)
Hash
convertToEntityAttribute(byte[] bytes)
-
Constructor Details
-
Converter
public Converter()
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumn
in interfacejavax.persistence.AttributeConverter<Hash,byte[]>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttribute
in interfacejavax.persistence.AttributeConverter<Hash,byte[]>
-