Class OptionalBooleanConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<Boolean,​Character>

    public class OptionalBooleanConverter
    extends Object
    implements javax.persistence.AttributeConverter<Boolean,​Character>
    • Constructor Detail

      • OptionalBooleanConverter

        public OptionalBooleanConverter()
    • Method Detail

      • convertToDatabaseColumn

        public Character convertToDatabaseColumn​(Boolean attribute)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<Boolean,​Character>
      • convertToEntityAttribute

        public Boolean convertToEntityAttribute​(Character dbData)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<Boolean,​Character>