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: No public execute() in SchemaUpdate
PostPosted: Wed Nov 10, 2004 10:07 pm 
Beginner
Beginner

Joined: Tue Nov 09, 2004 9:48 am
Posts: 23
Hibernate version:
2.1.6

Full stack trace of any exception that occurs:
No public execute() in class net.sf.hibernate.tool.hbm2ddl.SchemaUpdate
Name and version of the database you are using:
PostgreSQL 8.0 beta2

Guys,

Trying to use ant and hbm2ddl to update the schema incrementally, just as it shows in the hibernate documenation and the "Hibernate in Action" book.

However, when I execute my task, I get the error message "No public execute() in class net.sf.hibernate.tool.hbm2ddl.SchemaUpdate". I've looked at the class with Eclipse's reverse eng. capabilities and the method appears to be there. Other classes from the tool package, like SchemaExport, work just fine.

Can anyone see what I'm doing wrong? Here's my build.xml excerpt:

<target name="updateschema">
<taskdef name="schemaupdate"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaUpdate"
classpathref="project.class.path"/>
<schemaupdate config="${class.root}/hibernate.cfg.xml" quiet="no">
<fileset dir="src">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaupdate>
</target>

Thanks!


Top
 Profile  
 
 Post subject: Nevermind
PostPosted: Wed Nov 10, 2004 10:55 pm 
Beginner
Beginner

Joined: Tue Nov 09, 2004 9:48 am
Posts: 23
Somehow, I completely overlooked the "TasK" that's appended to the class name. Changing it to <taskdef name="schemaupdate"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaUpdateTask"
classpathref="project.class.path"/> did the trick.

Jbwiv


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.