Hello,
I have an ant task to create the DDL:
<target name="SchemaExport" depends="init" >
<taskdef name="schemaexport"
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask">
<classpath id="class.path">
<pathelement location="${workspace}/bin"/>
<fileset refid="lib.jar.files"/>
</classpath>
</taskdef>
<echo>hibernateSchemaExport</echo>
<schemaexport
config="${workspace}/bin/hibernate.cfg.xml"
quiet="no"
text="yes"
drop="no"
create="yes"
delimiter="
${sqlterminator}"
output="${workspace}/bin/create_schema.sql">
</schemaexport>
</target>
When I invoke this task using ant I get the following error:
C:\Projects\Java\HibernateAnnotations\Annotations\build.xml:71: Schema text failed: An AnnotationConfiguration instance is required to use <mapping class="com.acasa.annotation.pojo.basic.BasicPojo"/>
Please help.
Thanks,
Vasile
|