Since you work in the Eclipse environment, it is best to do everything in it. Hibernate comes with a tool SchemaExport that allows you to generate DDLs from the Map file. Create a directory in Eclipse Project, Schemae, and create two files. Schemae.xml, Schema.Properties.
Schema.properties content:
NeededClassPath = C: /Hibernate-2.1.4/Hibernate-2.1/Hibernate2.jar; C: /Hibernate-2.1.4/Hibernate-2.1/lib/Dom4j-1.4.jar; C: /Hibernate-2.1.4/Hibernate -2.1 / lib / commons-collections-2.1.jar; C: /Hibernate-2.1.4/Hibernate-2.1/lib/commons-logging-1.0.3.jar; c: / hsqldb_1_7_1/hsqldb/lib/hsqldb.jar ; D: /Eclipse-sdk-2.1.2-win32/eclipse/Workspace/fhjsj/bin/; d: /eclipse-sdk-2.1.2-win32/eclipse/Workspace/fhjsj/fhjsj/web-inf/classes/fhj/web-inf/classes/
Schema.xml content:
Other hibernate.properties and mapping files are placed in the Classes of Web-INF according to the specification of the web program. The final DDL file is placed below the Schemae directory.