Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.0
Mapping documents:
hibernate.cfg.xml
input.hbm.xml
[...].hbm.xml
...
Code between sessionFactory.openSession() and session.close():
Well, my problem is not a code-related unknown error or something like that. My problem is: i need to do batch processing as it is shown i chapter 13:
http://www.hibernate.org/hib_docs/v3/re ... batch.html
The information is clear but i have an added issue that makes it more difficult.
Imagine my application must import files with a large amount of rows, but it only has to commit them IF the 90% or greater of the imported registers are correct (in format and in meaning). If there is a 10% or greater of bad registers, the file is discarted including all the correct registers in it.
If I do a commit of a part of the full amount of rows, how can I undo it if the file is finally discarted?
Thanks a lot for the help!
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html