Hope to get response soon,<br />Thanks,<br />Prem.
Originally posted by Mark Spritzler:
OK so you are having issues when you are saving, loading, etc in a session. Can you also post that code? Remember, if I have an object that is in a session, and I call saveOrUpdate() it doesn't go to the database at that time until the session is flushed, which can be at time of transaction commit.
But your object references are still have the same values it had before. It you want something else from the database that you want, you will have to query for it.
Mark
Hope to get response soon,<br />Thanks,<br />Prem.
Originally posted by Mark Spritzler:
Is there anyway you are sharing a Session, from the first getRequest and the second getRequest, such that in the first call it is storing the data in first level cache, then detached and sent to the client. Then the client returns a new version of it with changes, the update opens a new session and saves, commits, then closes the session.
Then in the second call to getRequest, it gets the same Session object from the first call to getRequest, which has the old version of the data in it's cache and returns that object instead of ever going back to the database.
Are you using second level cache by any chance? (Just so we know what we have)
Mark
Hope to get response soon,<br />Thanks,<br />Prem.