| 
					
						 Hi,
 
 I am using OSCache with hibernate and it works fine if I am not using composit id in hibernate mapping file. But when I am using a new java class as composit Key, the cache for composit class is not working, is there any thing I need to change, the mapping file looks like this:
 
 <hibernate-mapping>
 
     <class name="com.ercot.mospublic.vo.DCTieFlowVO"  table="dctie_p_history" >
         <cache usage="read-write" />
         
         <composite-id name="id" class="com.ercot.mospublic.vo.DCTieFlowKey">
             <key-property name="hist_timestamp" type="date">
                 <column name="hist_timestamp"  />
             </key-property>
             <key-property name="hist_timestamp_dst" type="string">
                 <column name="hist_timestamp_dst" length="1" />
             </key-property>
             <key-property name="hcapi_subscript" type="integer">
                 <column name="hcapi_subscript"  />
             </key-property>
         </composite-id>
         
         <property name="schedued" column="dcsch_tie"/>
         <property name="actual" column="mw_tie"/>
         <property name="line" column="id_tie"/>
         <property name="id_opa" column="id_opa"/>
     </class>
 
 </hibernate-mapping> 
					
  
						
					 |