Closed belovaf closed 1 month ago
Model:
@Entity interface Store : SerialId { @ManyToMany(mappedBy = "stores") val books: List<Book> } @Entity interface Book : SerialId { val name: String @ManyToMany val stores: List<Store> }
Code:
sql.save(Store { id = 1 books().addBy { name = "book" } }) { setMode(SaveMode.UPDATE_ONLY) setAssociatedMode(Store::books, AssociatedSaveMode.VIOLENTLY_REPLACE) }
Actual queries:
delete from BOOK_STORE_MAPPING where STORE_ID = ?, variables: [1], purpose: MUTATE insert into BOOK(NAME) values(?), variables: {batch-0: [book]}, purpose: COMMAND
Missing insert into BOOK_STORE_MAPPING table.
See #694
Model:
Code:
Actual queries:
Missing insert into BOOK_STORE_MAPPING table.