When using java.time.Instant as field in an entity, I got the following exception:
com.microsoft.sqlserver.jdbc.SQLServerException: The conversion from datetime2 to DATETIMEOFFSET is unsupported.
It was working before in Hibernate 5. Full stacktrace:
Workaround: spring.jpa.properties.hibernate.type.preferred_instant_jdbc_type=TIMESTAMP |