Joined: Thu Jul 29, 2004 9:36 am Posts: 1 Location: India
|
Could any one tell me how do i do a SchemaUpdate in Hibernate. I tried doing that thru writing an Ant Script but thats not getting reflected in my DB.
I changed the hbm mapping files for the required changes to my schema.
And then ran this:-
<target name="update-db" depends="make-props" description="">
<taskdef name="schemaupdate" classname="net.sf.hibernate.tool.hbm2ddl.SchemaUpdateTask"
classpathref="project.class.path"/>
<schemaupdate properties="config/hibernate.properties"
quiet="false" text="fasle">
<fileset dir="${build.destdir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaupdate>
</target>
_________________ Thanks,
Chandrajeet
|
|