-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: cacheing for composite class
PostPosted: Tue Feb 27, 2007 6:17 pm 
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>


Top
  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 10:43 am 
Newbie

Joined: Fri Apr 08, 2005 11:29 am
Posts: 3
Hi, I am running into a similar issue. Did you ever find a resolution?

_________________
Jon Turgeon


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.