Class LocalTimeAttributeConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<LocalTime,​Timestamp>

    public class LocalTimeAttributeConverter
    extends Object
    implements javax.persistence.AttributeConverter<LocalTime,​Timestamp>
    Created by miguel on 12/10/16.
    • Constructor Detail

      • LocalTimeAttributeConverter

        public LocalTimeAttributeConverter()
    • Method Detail

      • convertToDatabaseColumn

        public Timestamp convertToDatabaseColumn​(LocalTime locDateTime)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<LocalTime,​Timestamp>
      • convertToEntityAttribute

        public LocalTime convertToEntityAttribute​(Timestamp sqlTimestamp)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<LocalTime,​Timestamp>