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)HashconvertToEntityAttribute(byte[] bytes)
-
Constructor Details
-
Converter
public Converter()
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumnin interfacejavax.persistence.AttributeConverter<Hash,byte[]>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttributein interfacejavax.persistence.AttributeConverter<Hash,byte[]>
-