Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Eclipse Dali 工具“从表中生成实体”,但我想更改默认表列/实体字段映射。
例如,当列类型为int时,工具会生成以下映射。
@Column(name="QUANTITY") private int quantity;
但是当数量可以为空时,它会在验证阶段出现问题,所以我将其更改为:
@Column(name="QUANTITY", columnDefinition="int") private BigDecimal quantity;
这可以全局配置吗?