Class MessageAttributeConverter

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

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

      • MessageAttributeConverter

        public MessageAttributeConverter()
    • Method Detail

      • convertToDatabaseColumn

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

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