Class ThrowableAttributeConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<java.lang.Throwable,​java.lang.String>

    public class ThrowableAttributeConverter
    extends java.lang.Object
    implements javax.persistence.AttributeConverter<java.lang.Throwable,​java.lang.String>
    A JPA 2.1 attribute converter for Throwables in LogEvents. This converter is capable of converting both to and from Strings.
    • Constructor Detail

      • ThrowableAttributeConverter

        public ThrowableAttributeConverter()
    • Method Detail

      • convertToDatabaseColumn

        public java.lang.String convertToDatabaseColumn​(java.lang.Throwable throwable)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<java.lang.Throwable,​java.lang.String>
      • convertToEntityAttribute

        public java.lang.Throwable convertToEntityAttribute​(java.lang.String s)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<java.lang.Throwable,​java.lang.String>