Let's say I define a parent-child table relationship on the hbm files i.e. one-to-many and many-to-one, and hibernate will keep the integrity of the data for insert/update/delete.
I would like to know is there any way to skip some "error" records, because for some jobs/processes manipulate large amount of data and then insert/delete/update back into tables. If there's one record failed in integrity, HIbernate will throw exception and stop processing.
But, I would like hibernate continues the work, but skip those error records (of course, it's good if can still log the error records).
Any ideas how to do so on Hibernate?
|