Class LocalTimeAttributeConverter

java.lang.Object
io.mateu.mdd.core.model.util.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 Details

    • LocalTimeAttributeConverter

      public LocalTimeAttributeConverter()
  • Method Details

    • 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>