Class LevelAttributeConverter

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

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

      • LevelAttributeConverter

        public LevelAttributeConverter()
    • Method Detail

      • convertToDatabaseColumn

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

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