I have both enabled query cache and second level cache in my hibernate configuration, The objects are cached in the second level cache but cached objects are not fully hydrated. Do you have any idea how to get the objects hydrated?
<property name="hibernate.cache.use_query_cache">true</property> <property name="hibernate.query.substitutions">true '1', false '0'</property> <property name="hibernate.default_batch_fetch_size">50</property> <property name="hibernate.order_updates">true</property> <property name="hibernate.cache.use_second_level_cache">true</property>
<class name="ir.dpi.cm.eb.model.AccountType" table="account_type" schema="REF"> <cache usage="read-only"/> <id name="id" type="java.lang.Long"> <column name="account_type_id" /> <generator class="sequence"> <param name="sequence">REF.SQCONSTANTS</param> </generator> </id>
|