Sorry, I'm not good at English.
Use:
Hibernate 2.1.4
Xdoclet-1.2.1
Use schemaexport with Ant task.
But, BUILD FAILED.
[schemaexport] BUILD FAILED: file:C:/eclipse-SDK-2.1.2-win32/workspace/Hibernate-Example/build.xml:120: Schema text failed: hibernate.cfg.xml not found
But, when I use Hibernate version 2.1.2, build successed.
This is build.xml
<target name="schemaexport" depends="xdoclet">
<taskdef name="schemaexport"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="build.classpath" />
<schemaexport config="/hibernate.cfg.xml"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="schema-export.sql">
</schemaexport>
</target>
|