Hi everyone,
I had written an mapping xml file and place it in the respective packages pojo class. and specified about this in cfg file.
Now i had written an ant task like this
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="project.classpath" />
<target name="schemaexport" depends="compile,copymetafiles" description="Exports a generated schema to DB and file" >
<hibernatetool destdir="${basedir}" >
<classpath refid="${builddir}" />
<configuration configurationfile="${build.dir}/hibernate.cfg.xml" />
<hbm2ddl drop="true" create="true" export="true" outputfilename="helloworld-ddl.sql" delimiter=";" format="true" />
</hibernatetool>
</target>
and placed hibernate-tools jar file in the class path.
Now when i am running the above task its giving an exception like
C:\workspace\HelloWorld\build.xml:31: org.hibernate.MappingNotFoundException: re
source: hello/Message.hbm.xml not found
Can any one tell why its comming like that?
Thanks in Advance
|