【发布时间】:2015-04-21 08:44:51
【问题描述】:
我想使用hibernate4-maven-plugin 在 SQL 中生成数据库架构。
但我有一个条件:我想一次生成 3 个模式:
- 一个用于 Postgres,
- 一个用于 Oracle 和
- 另一个用于 SQL Server。
这是我的配置:
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>
<version>1.0.3</version>
<executions>
<execution>
<goals>
<goal>export</goal>
</goals>
</execution>
</executions>
<configuration>
<hibernateDialect>org.hibernate.dialect.PostgreSQLDialect</hibernateDialect>
<!-- I want generate the schemas for these dialects too, at same time... -->
<!-- <hibernateDialect>org.hibernate.dialect.Oracle10gDialect</hibernateDialect>-->
<!-- <hibernateDialect>org.hibernate.dialect.SQLServerDialect</hibernateDialect>-->
<target>SCRIPT</target>
</configuration>
</plugin>
我查看了官方文档(上面的链接),但不清楚是否可能。
有没有办法用 hibernate4-maven-plugin 做到这一点?
谢谢!
【问题讨论】:
标签: java sql hibernate maven maven-plugin