Well, if each write should be a single unit of work, then each write needs to be placed within a single open and closed transaction. That way, only the failed records will fail.
Sometimes ETL tools are better at large batch updates than programs written with Hibernate. 500 records isn't that huge though. If it got to 5,000, or 50,000, I might change my tune though.
Let us know how it works!
_________________ Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?" http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials
|