I have A and B(a_id:Long)
entities.
B
depends on A
. So I've set constrainReference(onDelete cascade)
. Everything works fine.
But when I delete A
I want to free some resources depending on B
. Can somehow intercept B
's onDelete()
and perform operations then with a Squeryl way or I have to do it manually?