|
From a discussion between John O'Hara and Emmanuel Bernard
hey 18:09:25 ⤷ ╡ it is a hibernate proptery 18:09:30 ⤷ ╡ hibernate.cache.use_reference_entries 18:09:39 ⤷ ╡ we set it in persistence.xml in our tests 18:09:46 emmanuel ╡ and I guess you need to mark the entity as read-only as well? 18:09:52 ⤷ ╡ or immutable or soemting like that right? 18:10:02 ⤷ ╡ not all entities should be using references 18:10:36 johara ╡ yes, we set the entity as read only - <property name="hibernate.ejb.classcache.com.acme.orders.Item" value="read-only"/> 18:10:45 ⤷ ╡ and we mark it as immutable 18:11:13 ⤷ ╡ i think in hbm.xml, let me check 18:13:45 ⤷ ╡ yup, in hbm we configure the entity as immutable 18:13:45 ⤷ ╡ <class name="org.spec.jent.ejb.orders.entity.Item" dynamic-update="true" dynamic-insert="true" mutable="false" table="O_ITEM">
|