Class ISBNConverter

  • All Implemented Interfaces:
    jakarta.persistence.AttributeConverter<Long,​String>

    public class ISBNConverter
    extends Object
    implements jakarta.persistence.AttributeConverter<Long,​String>
    • Constructor Detail

      • ISBNConverter

        public ISBNConverter()
    • Method Detail

      • convertToDatabaseColumn

        public String convertToDatabaseColumn​(Long number)
        Specified by:
        convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Long,​String>
      • convertToEntityAttribute

        public Long convertToEntityAttribute​(String s)
        Specified by:
        convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Long,​String>