F:\installer\data\setup-db-hibernate.xml:94: org.hibernate.tool.hbm2x.ExporterException: Errors
 while performing Hbm2DDLExporter
--------------------------------------------------------------------------------
如何解决的大概思路。
表是生成了,但是映射好像没生成。

解决方案 »

  1.   


      <target name="hibernate-schema-create" depends="hibernate-prep,hibernate-schema-create-init">
        <hibernatetool>
          <classpath>
            <path refid="alljars"/>
          </classpath>
          <configuration propertyFile="${hibernate-properties-gen}" configurationfile="${install.dir}/data/hibernate.cfg.xml" />
      
          <hbm2ddl
              destdir="${build.dir}/sql"
              outputFileName="hibernate.sql"
              drop="false"
              create="true"
              update="false"
              format="true"
              console="false"
              export="true"
              delimiter=";"
              haltonerror="true"
              />
        </hibernatetool>
      </target>setup-db-hibernate.xml
      

  2.   

    用hibernate 根据表 生成实体对象 和映射表
    或者你自己手写···