You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [microsoft.sql.DateTimeOffset] to type [java.time.Instant]
CREATE TABLE [user]
(
id BIGINT IDENTITY (1,1) NOT NULL PRIMARY KEY,
created DATETIMEOFFSET(6) DEFAULT SYSDATETIMEOFFSET()
);
import java.time.Instant;
import org.springframework.data.annotation.Id;
import lombok.Data;
@Data
public class User {
@Id
private Long id;
private Instant created = Instant.now();
}
JdbcSqlServerDialect ships with a converter to java.time.OffsetDateTime. Feel free to submit a pull request for a converter that is also registered with JdbcSqlServerDialect.
i am getting this error
is it a bug
The text was updated successfully, but these errors were encountered: