`
IvanLi
  • 浏览: 599406 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

use hibernate3-maven to export sql based on entity

阅读更多
<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>hibernate3-maven-plugin</artifactId>
				<configuration>
					<components>
						<component>
							<name>hbm2ddl</name>
						</component>
					</components>
					<componentProperties>
						<drop>true</drop>
						<create>true</create>
						<ejb3>true</ejb3>
						<java5>true</java5>
						<export>true</export>
						<scan-classes>true</scan-classes>
						<outputfilename>schema.sql</outputfilename>
						<configurationfile>src/main/resources/local/hibernate.cfg.xml</configurationfile>
					</componentProperties>
				</configuration>
				<dependencies>
					<dependency>
						<groupId>mysql</groupId>
						<artifactId>mysql-connector-java</artifactId>
						<version>5.1.13</version>
					</dependency>
				</dependencies>
			</plugin>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics