I have a simple question:
When working in a transaction, should an HQL Named Query flush the session before returning a list of objects?
In pseudo-code (given an entity of type 'A'):
1. Begin transaction
2. Create a new instance of A
3. session.save(the new instance of A);
4. HQL to try to load A
5. Commit transaction
Should the HQL be able to find the new instance of A? I haven't been able to get it to work...
This is related to this other post which I found:
http://forum.hibernate.org/viewtopic.ph ... +flushmode
Thanks!