Class InstantToTimestampConverter

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

    public class InstantToTimestampConverter
    extends Object
    implements javax.persistence.AttributeConverter<Instant,​Timestamp>
    Since:
    0.36
    Author:
    Michiel Meeuwissen
    • Constructor Detail

      • InstantToTimestampConverter

        public InstantToTimestampConverter()
    • Method Detail

      • convertToDatabaseColumn

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

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