Jhipster:域类中的ZonedDateTime未转换为时间戳,而是转换为liquibase变更日志文件中的TINYBLOB
我正在使用JHipster 4.1,需要帮助添加新模型。 我试图创建扩展AbstractAuditionEntity类的模型类,但在生成changelog文件时使用mvnw liquibase:diff,新文件的时间戳数据类型为TINYBLOB。我不知道为什么会这样Jhipster:域类中的ZonedDateTime未转换为时间戳,而是转换为liquibase变更日志文件中的TINYBLOB,jhipster,liquibase,Jhipster,Liquibase,我正在使用JHipster 4.1,需要帮助添加新模型。 我试图创建扩展AbstractAuditionEntity类的模型类,但在生成changelog文件时使用mvnw liquibase:diff,新文件的时间戳数据类型为TINYBLOB。我不知道为什么会这样 > <column name="created_by" type="VARCHAR(50)"> > <constraints nullable="false"/> >
> <column name="created_by" type="VARCHAR(50)">
> <constraints nullable="false"/>
> </column>
> <column name="created_date" type="TINYBLOB">
> <constraints nullable="false"/>
> </column>
> <column name="last_modified_by" type="VARCHAR(50)"/>
> <column name="last_modified_date" type="TINYBLOB"/>
>
>
>
>
>
>
>
>
任何人都可以提出它为什么生成错误的数据类型。必须限制Liquibase。看看这个问题: 您可以通过以下方式手动修复它:
<column name="last_modified_date" type="timestamp"/>
这里有更多细节