From: Andre S. <And...@ci...> - 2007-11-23 14:36:54
|
Hallo, =20 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=20 =20 org.hibernate.ObjectNotFoundException: No row with the given identifier = exists =20 That show me that cache is not up-to-date. But with CacheStrategie: = read-write the cache should be up-to-date. =20 But if I setmaxElementsInMemory to a low value(1) the I see a differnt = between the cache before/after the create/delete. =20 After some minutes after timeToLive when the values read new from DB in = cache the display shows the correct data.=20 =20 I hope you can help me. =20 Thanks. =20 Andre =20 =20 Hibernate: 3.2.1 EHCache: 1.2.3 =20 SecondLevelCache on SecondLevelCacheProvider: SingletonEHCache SecondLevelCacheStrategie: read-write |