I upgraded to Hibernate 3.1.2 and now the hbm2dll output is not formatted as what H2 did before. the table definition is on one long line instead of something like this in H2:
create table ORGS (
ORG_ID bigint not null auto_increment,
NAME varchar(255) not null,
DESCR varchar(255),
ISDELETED bit,
CREATE_TIME datetime,
MODIFY_TIME datetime,
primary key (ORG_ID)
);
I am using Hibernate Tool 3.1 beta 4, running Ant task.
any reason why ?
thanks
lixin
build.xml
------------
<?xml version="1.0"?>
<project name="Canal" default="schemaexport" basedir=".">
<property name="build.dir" value="../../classes"/>
<property name="resource.dir" value="../resources"/>
<path id="libs">
<fileset dir="../../lib">
<include name="**/*.jar"/>
<include name="**/*.properties"/>
</fileset>
</path>
<target name="schemaexport">
<taskdef name="schemaexport"
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask">
<classpath refid="libs"/>
<classpath path="${build.dir}"/>
</taskdef>
<schemaexport
properties="${resource.dir}/hibernate.properties"
quiet="no"
text="yes"
drop="no"
delimiter=";"
output="db-schema.sql">
<fileset dir="../">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
</target>
</project>
|