query « Batch « JPA Q&A

1. batch processing and select query    forum.hibernate.org

2. stale results from query and batch updates    forum.hibernate.org

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 ...