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

问题描述 投票:0回答:1

我在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
database spring hibernate jhipster liquibase
1个回答
2
投票

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

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

© www.soinside.com 2019 - 2024. All rights reserved.