Hello,
I am a similar problem.
I have a web application and some event on web page inserts into a highly transactional table something like logger.
After inserting immediately I show the log by using getById() method and I don't get the required value from the database (I tried Get ,load n criterion's also)
Later after couple of seconds when I refresh the page I get the value properly. (When executed second time, error is not seen)
Even worse when I debug my program there is no error, whereas when I execute many transactions one after the other in run mode, I get this error which is periodic in nature.
Flush Mode is set to Auto.
I use session Factory to create session.
There are no update done in database outside the application.
Please help me trace the problem
Regards,
Amol
http://cursivetech.com