-->
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: ScehmaExportTask cannot create the database schema
PostPosted: Wed Sep 28, 2005 8:38 am 
Newbie

Joined: Mon Sep 26, 2005 10:53 am
Posts: 10
I just started to use Hibernate, and I was trying generate the sql schema for my application. I was using the ant script listed below.

When the text property is set to "no", and no database is previously created, the database schema is not generated but the
ant script reports a successful build.

If the database was manualy created (empty database), the generation worked fine.

I think that the SchemaExportTask should report that the database schema was not created because the database
doesn't exist (if text is set to "no").


Did someone noticed this behaviour before?

Best,

Sergiu

<target name="generate-schema">
<taskdef name="schemaexport"
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="classpath"/>
<schemaexport
properties="hibernate.properties"
quiet="no"
text="yes"
drop="no"
delimiter=";"
output="${build.conf.dir}/schema-export.sql">
<fileset dir="${build.conf.dir}/">
<include name="*.hbm.xml"/>
</fileset>
</schemaexport>

</target>


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.