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 SummaryConstructors Constructor Description Converter()
- 
Method SummaryModifier and Type Method Description byte[]convertToDatabaseColumn(Hash hash)HashconvertToEntityAttribute(byte[] bytes)
- 
Constructor Details- 
Converterpublic Converter()
 
- 
- 
Method Details- 
convertToDatabaseColumn- Specified by:
- convertToDatabaseColumnin interface- javax.persistence.AttributeConverter<Hash,byte[]>
 
- 
convertToEntityAttribute- Specified by:
- convertToEntityAttributein interface- javax.persistence.AttributeConverter<Hash,byte[]>
 
 
-