You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QuerydeleteReferencing = session.createQuery("delete from Order where customer_id = :id");
Will fail in case there are entries in order_products, which does not have ON DELETE CASCADE clauses on its foreign keys by default (I think). I'm not sure if this is desired here.
OrderService::deleteOrder fails because of wrong query:
I'm currently translating some of the Java/Hibernate examples to jOOQ and found a few issues that you may or may not want to address:
CustomerService::deleteCustomer
fails when orders haveOrderProduct
entries:This query here:
examples-orms/java/hibernate/src/main/java/com/cockroachlabs/services/CustomerService.java
Line 83 in 8aacfca
Will fail in case there are entries in
order_products
, which does not haveON DELETE CASCADE
clauses on its foreign keys by default (I think). I'm not sure if this is desired here.OrderService::deleteOrder
fails because of wrong query:This query here:
examples-orms/java/hibernate/src/main/java/com/cockroachlabs/services/OrderService.java
Line 83 in 8aacfca
Will fail because the
Order
entity doesn't have anorder_id
column. I think the intention here was to delete the record inorder_products
The text was updated successfully, but these errors were encountered: