babyfish-ct / jimmer

A revolutionary ORM framework for both java and kotlin.
Apache License 2.0
882 stars 91 forks source link

[Bug]save 关联对象时,若有多个关联对象的 key 相同时,发生错误: id unloaded #798

Closed Arkmusn closed 5 days ago

Arkmusn commented 1 week ago

前提

save  command

image

Exception

fcbec3e60207aa0a3140b37df7cfb605

Debug view

Arkmusn commented 1 week ago

update 原因是因为 save 的时候传入了两个 key 一样的关联对象需要 insert。

以下示例可以复现 https://github.com/Arkmusn/jimmer-issue-report

babyfish-ct commented 5 days ago

Try 0.9.20