-->
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.  [ 3 posts ] 
Author Message
 Post subject: problems with CodeGenerator
PostPosted: Tue Feb 24, 2004 11:53 am 
Regular
Regular

Joined: Tue Feb 24, 2004 11:42 am
Posts: 56
Hello
I was trying to generate persistence classes using ant.I am using hibernate 2.1.2 and extensions Hibernate Extensions 2.0.2 .

file:C:/V2/build.xml:52: No public execute() in class net.sf.hibernate.tool.hbm2.java.CodeGenerator

I am attatching bits of my ant file.

<path id="hibernate.class.path">
<!-- todo the master script should move all required libs here -->
<fileset dir="${hibernate.lib.dir}">
<include name="*.jar"/>
</fileset>
<pathelement location="${hibernate.jar}/hibernate2.jar"/>
</path>
<path id="hibernate.extension.class.path">
<path refid="hibernate.class.path"/>
<fileset dir="${hibernate.extension.lib.dir}">
<include name="*.jar"/>
</fileset>
<pathelement location="${hibernate.extension.jar}/hibern8ide.jar"/>
</path>

<taskdef name="geteratesrc" classname="net.sf.hibernate.tool.hbm2java.CodeGenerator" classpathref="hibernate.extension.class.path" />
<!-- from an Ant build.xml -->
<target name="geteratesrc">
<geteratesrc output="${output.java.src.dir}">
<fileset dir="${project.src.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</geteratesrc>
</target>

The mapping fuiles are copied from the example with downloads the autcion one.
Many thanks in advance
Gopal Saha


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 24, 2004 11:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
The task is net.sf.hibernate.tool.hbm2java.Hbm2JavaTask


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 24, 2004 1:32 pm 
Regular
Regular

Joined: Tue Feb 24, 2004 11:42 am
Posts: 56
Thanks very much it did work


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.