A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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 : cascade=all behaves like cascade=all,delete-orphan
Hibernate - Deleting a parent and it's children
Generate Transaction/Sales ID by SerialNo + CustomerID + Sales Person ID + Date
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014