-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Any way to bypass those "Error" records
PostPosted: Tue Aug 28, 2007 12:23 pm 
Newbie

Joined: Wed Jan 31, 2007 9:55 pm
Posts: 16
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?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 28, 2007 12:37 pm 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
Have a look at the annotation

@Notfound

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.