I'm using hibernate version 3.1
I've noticed that when inserting entity without flushing, I cannot get hibernate to return the new entity when running query for it (say by one of its properties). even in context of the same session in which it was persisted.
1) Am I doing something wrong?
2) I'm inserting this entities in my application in context of some very large scale update and would like to take advantage of batch updating. I've read in your batch updates section that you recommend performing a session.flush and session.clear every batch_size number of updates. This, therefore, will not work if my updates depend on previous updates (that is, previous entities I've persisted). So, how can use batching in my case?
3) Was there any change at this area in later hibernate versions?
thanks
|