-->
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: HibernateToolsTask in Hibernate4
PostPosted: Wed Mar 14, 2012 1:45 pm 
Newbie

Joined: Wed Mar 14, 2012 1:41 pm
Posts: 1
I am following a book to learn hibernate. Its probably an old book and there some problems in the book. Currently the book i suggesting to create schema using following ant script

Code:
<taskdef name="hibernatetool"
    classname="org.hibernate.tool.ant.HibernateToolTask"
    classpathref="project.classpath"/>

   <target name="schemaexport" depends="compile, copymetafiles"
        description="Exports a generated schema to DB and file">
            <hibernatetool destdir="${basedir}">
            <classpath path="${build.dir}"/>
            <configuration
                configurationfile="${build.dir}/hibernate.cfg.xml"/>
                    <hbm2ddl
                        drop="true"
                        create="true"
                        export="true"
                        outputfilename="helloworld-ddl.sql"
                        delimiter=";"
                    format="true"/>
                </hibernatetool>
    </target>


And this class doesn't exist anymore. Is there any alternate to this class? what would be its settings?


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.