mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
PL-8173 For identity-ID entity in composition, edit right after create yields another instance
This commit is contained in:
parent
a8428e67cb
commit
b433b0a14f
@ -142,8 +142,11 @@ public class IdProxy extends Number implements Serializable {
|
||||
|
||||
IdProxy that = (IdProxy) other;
|
||||
|
||||
if (value != null)
|
||||
if (value != null) {
|
||||
if (that.value == null && that.entity.getDbGeneratedId() != null)
|
||||
return value.equals(that.entity.getDbGeneratedId());
|
||||
return value.equals(that.value);
|
||||
}
|
||||
|
||||
if (entity.getDbGeneratedId() == null || that.entity.getDbGeneratedId() == null)
|
||||
return Objects.equals(uuid, that.uuid);
|
||||
|
Loading…
Reference in New Issue
Block a user