I want to use the Hibernate Second level cache for Entity beans. It works fine with simple Entitys, but in the case of many to many relations (for example the 'Relationships' tutorial) it does not work. I think that, at a Hibernate level, there is an explanation here:
http://www.javalobby.org/java/forums/t48846.html
But I can not see how to implement his suggestion at EJB3 level.
I suppose that what I am looking for is an annotation equivalent of
<many-to-one name="parent" column="parent_id" class="Person"/> <set name="children"> <key column="parent_id"/> <cache usage="read-write"/> <one-to-many class="Person"/> </set>
<cache usage="read-write"/>bit.
I guess maybe I put this in the wrong forum. I have moved it to http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246124#4246124.