A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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?
Hibernate - Deleting a parent and it's children
Generate Transaction/Sales ID by SerialNo + CustomerID + Sales Person ID + Date
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