Class HashConverter

java.lang.Object
org.kuali.rice.krad.data.jpa.converters.HashConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<String,String>

public class HashConverter extends Object implements javax.persistence.AttributeConverter<String,String>
Calls the core service to hash values going to the database.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • HashConverter

      public HashConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(String objectValue)
      This implementation hashes the value going to the database.
      Specified by:
      convertToDatabaseColumn in interface javax.persistence.AttributeConverter<String,String>
    • convertToEntityAttribute

      public String convertToEntityAttribute(String dataValue)
      This implementation directly returns the hash value coming from the database.
      Specified by:
      convertToEntityAttribute in interface javax.persistence.AttributeConverter<String,String>