相关疑难解决方法(0)

使用Hibernate 4生成SQL DB创建脚本

我们目前正在使用Hibernate 3,我们使用Hibernate Tools为数据库模式生成SQL脚本.

我们使用以下Ant任务

<hibernatetool destdir="${target}">
    <jpaconfiguration persistenceunit="@{persistenceUnit}" propertyfile="@{propertyfile}"/>
    <classpath refid="@{classpathid}"/>
    <!-- the file name is relative to $destdir -->
    <hbm2ddl outputfilename="@{output}" format="true" export="false" drop="false"/>
</hibernatetool>
Run Code Online (Sandbox Code Playgroud)

我们想切换到Hibernate 4:如何在没有Hibernate工具的情况下实现类似的东西?

ant hibernate

2
推荐指数
1
解决办法
5221
查看次数

标签 统计

ant ×1

hibernate ×1