Class OffsetDateTimeConverter
java.lang.Object
com.sap.olingo.jpa.metadata.reuse.OffsetDateTimeConverter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<ZonedDateTime,OffsetDateTime>
public class OffsetDateTimeConverter
extends Object
implements javax.persistence.AttributeConverter<ZonedDateTime,OffsetDateTime>
Default converter to convert from
OffsetDateTime to ZonedDateTime. This is
required, as Olingo 4.7.1 only supports ZonedDateTime, where as JPA 2.2 supports OffsetDateTime.- Author:
- Oliver Grande Created: 09.03.2020
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn(ZonedDateTime zonedDateTime)convertToEntityAttribute(OffsetDateTime dateTimeWithOffset)
-
Constructor Details
-
OffsetDateTimeConverter
public OffsetDateTimeConverter()
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumnin interfacejavax.persistence.AttributeConverter<ZonedDateTime,OffsetDateTime>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttributein interfacejavax.persistence.AttributeConverter<ZonedDateTime,OffsetDateTime>
-