Hi,
I’m developing a web application with VP, but some annoying problems occurring continuously.
Although I selected “disable cache” from cache options section, when I insert or modify a row in DB hibernate always give me a cached version of object.
How can I disable this cache?
Thanks
Maurizio
P.S.: I’m using VP Version 6.1 build 20070821e for linux
The cache option is used for defined the second-level cache, which is used for cross-session. What hibernate provided is a first-level cache. It means that the loaded/saved object will be cached in the session.
In order to force the session to load an object from the database, you can using session.clear() or session.evict(object)