ERROR: column "own_amount" is of type numeric but expression is of type character varying
ERROR: column "own_amount" is of type numeric but expression is of type character varying
我在数据库中有下一个字段,使用当前实体创建
@NotNull
@Column(name = "own_amount", precision = 21, scale = 4, nullable = false)
private BigDecimal ownAmount;
Liquibase csv
id;own_amount
1;37454
错误
ERROR: column "own_amount" is of type numeric but expression is of type character varying
How to fix this
这是生成器中的错误,它将是 fixed in this pull request。
要在下一个 JHipster 版本之前修复,请将实体 XML 更新日志文件中 own_amount
字段的 string
更改为 numeric
(在 loadData
标签).
我在数据库中有下一个字段,使用当前实体创建
@NotNull
@Column(name = "own_amount", precision = 21, scale = 4, nullable = false)
private BigDecimal ownAmount;
Liquibase csv
id;own_amount
1;37454
错误
ERROR: column "own_amount" is of type numeric but expression is of type character varying
How to fix this
这是生成器中的错误,它将是 fixed in this pull request。
要在下一个 JHipster 版本之前修复,请将实体 XML 更新日志文件中 own_amount
字段的 string
更改为 numeric
(在 loadData
标签).