Hibernate version:2.0
Name and version of the database you are using:SQL Server 2000
We are using hibernate as our DAO layer..
1. I have a client application (built using swing) that talks to the tomcat server and downloads the required data and user can add new records thru' this client application, which does a SOAP call to tomcat & saves the data to database.
2. Data gets saved properly to the database, things are fine till now
3. Now if the user logs out from the client application & logs back in immediatly, the record he added in the earlier login does not display on the client application, I see the data exists in the DB.. its just that its not getting downloading to the client
4. I think somewhere the second login is getting the data from cache & its not made dirty while adding the new record to the DB.
Looking for either one of the solution -
a. Is there a way to indicate to hibernate to ALWAYS hit the DB to get the user data & not get it from cache at all?
b. Or is there a way to dirty the user data when I added a record? NOTE: At the time of adding the record I do not have the main User object and just only inserting a record for that user and only that record is passed from the client to server
Any help in resolving this... will be great.
Thanks
Bhaskar
|