Class LocalDateConverter

  • All Implemented Interfaces:
    javax.persistence.AttributeConverter<org.joda.time.LocalDate,​java.sql.Date>

    public class LocalDateConverter
    extends java.lang.Object
    implements javax.persistence.AttributeConverter<org.joda.time.LocalDate,​java.sql.Date>
    JPA converter for LocalDate, to/from Date.
    • Constructor Detail

      • LocalDateConverter

        public LocalDateConverter()
    • Method Detail

      • convertToDatabaseColumn

        public java.sql.Date convertToDatabaseColumn​(org.joda.time.LocalDate attribute)
        Specified by:
        convertToDatabaseColumn in interface javax.persistence.AttributeConverter<org.joda.time.LocalDate,​java.sql.Date>
      • convertToEntityAttribute

        public org.joda.time.LocalDate convertToEntityAttribute​(java.sql.Date dbData)
        Specified by:
        convertToEntityAttribute in interface javax.persistence.AttributeConverter<org.joda.time.LocalDate,​java.sql.Date>