Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
不使用hibernate ant工具任务创建hibernate_序列create语句_Hibernate_Hibernate Tools - Fatal编程技术网

不使用hibernate ant工具任务创建hibernate_序列create语句

不使用hibernate ant工具任务创建hibernate_序列create语句,hibernate,hibernate-tools,Hibernate,Hibernate Tools,目前正在使用hibernate ant工具任务,使用hbm文件生成ddl文件,如下所示 <hibernatetool destdir="${project.build.directory}/sql"> <classpath> <path refid="maven.test.classpath"/> </classpath> <configuration configurationfile=&qu

目前正在使用hibernate ant工具任务,使用hbm文件生成ddl文件,如下所示

<hibernatetool destdir="${project.build.directory}/sql">
<classpath>
    <path refid="maven.test.classpath"/>
</classpath>
<configuration configurationfile="${platform-path}/hibernate.cfg.xml">
    <fileset dir="${project.build.outputDirectory}">
         <include name="**/*.hbm.xml"/>
    </fileset>
 </configuration>
 <hbm2ddl drop="false" create="true" export="${metadata.database.generate}" outputfilename="create.ddl" delimiter=";" format="true" console="${hbm2ddl.console}"/>

但是生成的ddl文件的第一行是 创建序列休眠\u序列开始1增量1

我不希望生成文件中的第一行,因为数据库已经创建了hibernate_序列

请告知