[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Jboss 4.0.3, Hibernate, Cache - class declaration

jbruen do-not-reply at jboss.com
Mon May 14 17:32:20 EDT 2007


I am moving an application from standalone Tomcat 5.5.x to JBOSS. In Tomcat, I declare my cached classes[ & collections] in the hibernate.cfg.xml file. for example:

anonymous wrote : 		<class-cache class="com.elasticpath.commons.datatransfer.AddressDTO" usage="read-only"/>
  | 
  | 
  | 

In JBOSS, it is not clear to me where these declarations go as the hibernate.cfg.xml is not part of the Hibernate Archive strategy. DO I need to explicitly declare them in the hbm.xml files? For example, in AddressDTO.hbm.xml:


anonymous wrote : <class lazy="false" 
  |   |     name="com.elasticpath.commons.datatransfer.AddressDTO" 
  |   |     table="TADDRESS">
  |   | <cache usage ="read-only"/>


Or is there some other method within the Hibernate Archive [.HAR]?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045602#4045602

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045602



More information about the jboss-user mailing list