错误:列“ own_amount”的类型为数字,但表达式的类型为字符变化

时间:2019-04-21 21:58:41

标签: database spring hibernate jhipster liquibase

我在db中有下一个字段,使用当前实体创建

@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

1 个答案:

答案 0 :(得分:2)

这是生成器中的错误,将为fixed in this pull request

要在下一个JHipster版本之前修复,请将实体的XML更改日志文件(在string标记中的numeric字段的own_amount更改为loadData