-->
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.  [ 4 posts ] 
Author Message
 Post subject: hbm2ddl update=true not working ?
PostPosted: Tue Feb 07, 2006 3:35 am 
Beginner
Beginner

Joined: Thu Jun 10, 2004 6:52 am
Posts: 29
The problem that I am encountering is that no matter what I change into the mapping files, the hbm2ddl, update=true will not generate the update statements into the indicated SQL output file, nor export them into the DB.

The ANT target:

<target name="update-tables" description="Update tables">
<tstamp>
<format property="stamp" pattern="yyyy-MM-dd_hh-mm-ss" />
</tstamp>
<hibernatetool destdir="../sql">
<classpath>
<!-- a classpath is optional, but needed for exporters that require access to domain classes etc. -->
<path refid="master-classpath" />
</classpath>

<configuration configurationfile="src/hibernate-gen.cfg.xml" />
<!-- annotated class/packages are specified in the hibernate.cfg.xml -->
<hbm2ddl update="true" outputfilename="rf-update_${stamp}.sql" />

<!-- SchemaExport based on Annotations -->
</hibernatetool>

</target>

Hibernate version: 3.1.1
Tools version: HibernateTools-3.1.0.beta4


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 4:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
put it in jira and i'll look at it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 13, 2006 2:32 am 
Beginner
Beginner

Joined: Thu Jun 10, 2004 6:52 am
Posts: 29
well, I remember that someday I posted a new issue in JIRA about it but I don't seem to find it now. Did you have time to look at why update doesn't work, or at least why it doesn't seem to work ?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 13, 2006 3:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so post it again - i dont remember seeing it either.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.