A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
A constraints needed to satisfy, how to setup MariaDB?
Joined: Aug 02, 2012
Aug 21, 2013 03:50:17
*customer deleted then order details, complain and maintainence to be deleted
However, where should I define the cascade delete in MariaDB...
Say the 1st one, should I put the cascade delete option in customer or the other tables?
Update, should be in the other tables:
I agree. Here's the link:
subject: A constraints needed to satisfy, how to setup MariaDB?
Generate Transaction/Sales ID by SerialNo + CustomerID + Sales Person ID + Date
Hibernate - Deleting a parent and it's children
Hibernate : cascade=all behaves like cascade=all,delete-orphan
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014