Hi,
I'm using treecache for second level cache:
| <property name="hibernate.cache.provider_class"
| value="org.jboss.ejb3.entity.TreeCacheProviderHook"/>
| <property name="hibernate.treecache.mbean.object_name"
| value="jboss.cache:service=TreeCache" />
| <property name="hibernate.cache.use_query_cache"
| value="true" />
|
|
I've got an entity with one to many relation defined:
|
| @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL)
| @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy
= "felhasznalok")
| public Set<Kedvencek> getKedvenceks() {
| return this.kedvenceks;
| }
|
and also defined caching for collections. The whole caching works fine, except,
when i merge the entity with the mapped collection (added a new entry for the
onetomany relation collection), the changes appear in the database, but the
cache does not update itself.
With simple entities the cache works fine, and the new values are shown.
What's the problem?
regards L
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969844#3969844
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969844
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user