-->
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.  [ 1 post ] 
Author Message
 Post subject: HBM file Generation using Middlegen and to add cache usage
PostPosted: Fri Apr 04, 2008 1:44 pm 
Newbie

Joined: Fri Apr 04, 2008 1:36 pm
Posts: 1
I am using ant script to generate hbm files. But, how can I implement <cache usage="read-write"/> t o get populated in my hbm files.

My current script looks like below and if anyone can help me out with this then it will be a great help.

Code:
   <!-- Generate HBM from database -->
   <target name="gen-hbm" depends="init">
      <middlegen
         appname="quest"
         prefsdir="."
         gui="${gui}"
         databaseurl="${database.url}"
         driver="${database.driver}"
         username="${database.userid}"
         password="${database.password}"
         schema="${database.schema}"
         catalog="${database.catalog}"
      >
         <hibernate
            version="3.0"
            destination="${dest.dir}"
            package="${package}"
            genXDocletTags="${gen.xdoclet-tag}"
            standardCascade="${hibernate.cascade}"
            javaTypeMapper="com.avnet.quest.plugins.hibernate.QuestHibernateJavaTypeMapper"            
         />

         <!-- List specific tables to generate -->
         <!-- NOTE: all tables in ${schema} will be generated if none listed -->
         <!--table name="QUOTE" /-->

      </middlegen>
   </target>

_________________
mdnp


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

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.