You could try catching the exception. Matt
On Wed, Feb 18, 2009 at 4:10 AM, RengeshBabu <rengesh...@yahoo.co.in> wrote: > > Hi, > In my application, I use for-loop to save many objects. Outside for-loop, I > commit. I have unique index set in table with some columns. If there is > duplicate record tried to insert, hibernate throws exception. I want to > avoid getting exception and just continue with other unique records > available. How can I do this? > > Thanks & Regards, > Rengesh Babu > -- > View this message in context: > http://www.nabble.com/Ignoring-insert-errors-while-inserting-in-hibernate-tp22076551s2369p22076551.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >