Hallo,
I have a problem with SingletonEHCache. If I create a new Object it is created
a new row in database table. But if I take a findAll() after create then I
don`t see the new Object. The same effect during delete a Object. In Database
it is deleted. During findAll() after delete it come a
org.hibernate.ObjectNotFoundException: No row with the given identifier exists
That show me that cache is not up-to-date. But with CacheStrategie: read-write
the cache should be up-to-date.
But if I setmaxElementsInMemory to a low value(1) the I see a differnt between
the cache before/after the create/delete.
After some minutes after timeToLive when the values read new from DB in cache
the display shows the correct data.
I hope you can help me.
Thanks.
Andre
Hibernate: 3.2.1
EHCache: 1.2.3
SecondLevelCache on
SecondLevelCacheProvider: SingletonEHCache
SecondLevelCacheStrategie: read-write
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel