Hi All,
So i downloaded Hibernate3 and Hibernate-Tools-3.2.0.beta8 (from which i extracted hibernate-tools.jar), and when i try to compile i get the following error:
Quote:
Could not create type hbm2java due to java.lang.NoSuchMethodException: org.hibernate.tool.ant.Hbm2JavaExporterTask.<init>(org.apache.tools.ant.Project)
my ant file looks like this:
Code:
<taskdef name="hbm2java"
classname="org.hibernate.tool.ant.Hbm2JavaExporterTask"
classpathref="project.class.path"/>
<!-- Generate the java code for all mapping files in our source tree -->
<target name="codegen" description="Generate Java source from the O/R mapping files">
<hbm2java output="${source.root}">
<fileset dir="${source.root}">
<include name="**/*.hbm.xml"/>
</fileset>
</hbm2java>
</target>
I think its something within the libraries i'm doing wrong..but can't figure it out. Can anyone please give me a clear guide on what to do?!
Best Regards
NickyF
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelpHibernate version: Mapping documents:Code between sessionFactory.openSession() and session.close():Full stack trace of any exception that occurs:Name and version of the database you are using:The generated SQL (show_sql=true):Debug level Hibernate log excerpt:Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.htmlQuote: