Closed belovaf closed 1 month ago
Model:
interface Parent : SerialId { @OneToMany(mappedBy = "parent") val items: List<Item> } interface Item : SerialId { @ManyToOne @OnDissociate(DissociateAction.DELETE) val parent: Parent }
Code:
sql.update(Parent { id = 1 items = emptyList() }, AssociatedSaveMode.REPLACE)
Actual Sql:
delete from item where parent_id = ? and not (id = any(?))
Expected Sql:
delete from item where parent_id = ?
Cannot be fixed
Model:
Code:
Actual Sql:
Expected Sql: