-->
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.  [ 2 posts ] 
Author Message
 Post subject: Schema export is producing an empty schema
PostPosted: Tue Jun 22, 2004 11:07 am 
Newbie

Joined: Fri Jun 04, 2004 11:03 am
Posts: 3
Location: Montreal
Hello,

Schema export is simply doing nothing as far as I can tell: it opens a connection to the database, commits and closes the connection. It also creates an empty file where I want my ddl file to be. Postgres produces this warning:
Quote:
WARNING: COMMIT: no transaction in progress


Here's my maven.xml

Code:
<project xmlns:ant="jelly:ant">
    <preGoal name="java:compile">
        <attainGoal name="xdoclet:hibernatedoclet"/>
    </preGoal>
<goal name="hibernate:schema-export3" >

    <ant:echo>Exporting Hibernate Schema file</ant:echo>
    <ant:mkdir dir="${maven.hibernate.output.dir}"/>

  <ant:taskdef name="schemaexport"
    classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask">
    <ant:classpath>
      <ant:path refid="maven.dependency.classpath"/>
      <ant:pathelement path="${maven.build.dest}"/>
    </ant:classpath>
  </ant:taskdef>

<schemaexport
     properties="${maven.hibernate.properties}"
     quiet="no"
     text="no"
     drop="no"
     delimiter=";"
     output="${maven.hibernate.output.file}">
     <fileset dir="target/classes/">
         <include name="**.*.hbm.xml"/>
     </fileset>
</schemaexport>

</goal>
</project>


I'm using :

hibernate : 2.1.4
maven: 1.0rc-3
postgresql: 7.3


Top
 Profile  
 
 Post subject: Re: Schema export is producing an empty schema
PostPosted: Tue Jul 06, 2004 8:31 pm 
Newbie

Joined: Tue Jul 06, 2004 8:11 pm
Posts: 1
dubbed wrote:
<schemaexport
properties="${maven.hibernate.properties}"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="${maven.hibernate.output.file}">
<fileset dir="target/classes/">
<include name="**.*.hbm.xml"/>
</fileset>
</schemaexport>

set text="yes"


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.