`

Schema Export

阅读更多
build.xml


<?xml version="1.0" encoding="UTF-8"?>
<project name="bisoft" default="schemaexport" basedir=".">

	<path id="project.classpath">
		<fileset dir="lib">
			<include name="**/*.jar" />
		</fileset>
	</path>

	<target name="schemavalidate">
		<taskdef name="schemavalidator" classname="org.hibernate.tool.hbm2ddl.SchemaValidatorTask" classpathref="project.classpath"/>
		<schemavalidator properties="src\cn\bisoft\component\orm\hibernate\hibernate.properties">
			<fileset dir="src">
				<include name="**/*.hbm.xml"/>
			</fileset>
		</schemavalidator>
	</target>

	<target name="schemaexport" depends="schemavalidate">
		<taskdef name="schemaexport" classname="org.hibernate.tool.hbm2ddl.SchemaExportTask" classpathref="project.classpath"/>
		<schemaexport properties="src\cn\bisoft\component\orm\hibernate\hibernate.properties" quiet="no" text="no" drop="no" delimiter=";" output="schema-export.sql">
			<fileset dir="src">
				<include name="**/*.hbm.xml"/>
			</fileset>
		</schemaexport>
	</target>

</project>


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics