【发布时间】:2018-09-30 03:25:55
【问题描述】:
我在其中一个实体中添加了一个 LocalDateTime 列,并且根据 Postgresql documentation,这会以 SQL 方式映射到 TIMESTAMP 类型。
但是,当在validate 模式下使用 Hibernate 运行 Spring Boot 应用程序时,由于以下原因启动失败:
Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [request_date_time] in table [prepayment]; found [timestamp (Types#TIMESTAMP)], but expecting [bytea (Types#VARBINARY)]
有什么想法会导致这种行为吗?
【问题讨论】:
标签: postgresql hibernate spring-boot spring-data