-->
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: is SchemaUpdate really working?
PostPosted: Thu Jul 29, 2004 9:43 am 
Newbie

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


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.