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>