Hey!
By using EntityListener I’ve created a log of all changes made on the DB.
I want to use this log to perform all those changes on a copy of the DB,
But when trying to do so, I fail due to constraints failure.
Obviously, I have to order the batch commands before executing.
So the question is – How can I use hibernate metadata to get the tables
relationships so I can order them correctly?
[Pay attention! In the log file due to the way @preRemove works, the containerAppears before its containment!]
Thanks!
Sharon.
|