-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 
Author Message
 Post subject: Hibernate Tools not working properly
PostPosted: Mon Oct 06, 2008 11:24 pm 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
hi,

i m using hibernate tool to regenerate the mappings and pojos(for jdk5) but it is not working with oracle 10g i tested the same script with mysql 5 and it works perfectly right

my and build.xml is as follows
Code:
<?xml version="1.0"?>
<!--
   Hibernate Tools Ant Script.
-->
<project default="build" basedir=".">
   
   <target name="build" depends="cfgxml">
      <echo>Hibernate Reverse Engineering Ant Script</echo>
   </target>

   <taskdef
      name="hibernatetool"
      classname="org.hibernate.tool.ant.HibernateToolTask"
      classpathref="libs"
      >
   </taskdef>
   <property name="mainbuilddir" value="build" />
   <property name="builddir" value="build/com/my/entity" />
   <property name="hibernatecfg" value="hibernate.cfg.xml" />
   <property name="hibernateprop" value="hibernate.properties" />
   <property name="mappings" value="com/my/entity" />
   
   <path id="libs">
      <fileset dir="../libs">
         <include name="**/*.jar"/>
      </fileset>
   </path>
   
   <target name="clean">
      <delete dir="${mainbuilddir}" verbose="no" />
   </target>
   
   <target name="init" depends="clean">
      <mkdir dir="${builddir}" />
   </target>
   
   <target name="hbm" depends="init">
      <hibernatetool destdir="${builddir}" >
         <jdbcconfiguration configurationfile="${hibernatecfg}"/>
         <hbm2hbmxml destdir="${builddir}" />
      </hibernatetool>
   </target>
   
    <target name="pojo" depends="hbm">
      <hibernatetool destdir="${builddir}">
         <jdbcconfiguration configurationfile="${hibernatecfg}">
         <!--
            <configuration propertyfile="${hibernateprop}">
               <fileset dir="${mappings}" id="id">
                  <include name="**/*.hbm.xml"/>
               </fileset>
            </configuration>
            -->
            </jdbcconfiguration>
         <hbm2java jdk5="true"/>
      </hibernatetool>
   </target>
   
   <target name="cfgxml" depends="pojo">
      <hibernatetool destdir="${builddir}">
         <jdbcconfiguration configurationfile="${hibernatecfg}"/>
         <hbm2cfgxml />
      </hibernatetool>
   </target>
</project>


and it generates the output as

Code:

Buildfile: E:\WORK\EclipseWrokspace\POJO-Generator\src\build2.xml
Warning: Reference libs has not been set at runtime, but was found during
build file parsing, attempting to resolve. Future versions of Ant may support
referencing ids defined in non-executed targets.
clean:
   [delete] Deleting directory E:\WORK\EclipseWrokspace\POJO-Generator\src\build
init:
    [mkdir] Created dir: E:\WORK\EclipseWrokspace\POJO-Generator\src\build\com\my\entity
hbm:
[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernatetool] 1. task: hbm2hbmxml (Generates a set of hbm.xml files)
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: Hibernate 3.2.5
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: hibernate.properties not found
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.Environment buildBytecodeProvider
[hibernatetool] INFO: Bytecode provider name : cglib
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.Configuration configure
[hibernatetool] INFO: configuring from file: hibernate.cfg.xml
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.JDBCMetaDataConfiguration parseMappingElement
[hibernatetool] INFO: Ignoring null mapping
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.cfg.Configuration doConfigure
[hibernatetool] INFO: Configured SessionFactory: null
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: Hibernate connection pool size: 20
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: autocommit mode: false
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@127.0.0.1:1521:orcl
[hibernatetool] Oct 7, 2008 9:18:27 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: connection properties: {user=xxx, password=****}
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
[hibernatetool] With the Partitioning, OLAP and Data Mining options
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.dialect.Dialect <init>
[hibernatetool] INFO: Using dialect: org.hibernate.dialect.Oracle9Dialect
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.dialect.Oracle9Dialect <init>
[hibernatetool] WARNING: The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
[hibernatetool] INFO: Using default transaction strategy (direct JDBC transactions)
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
[hibernatetool] INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Automatic flush during beforeCompletion(): disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Automatic session close at end of transaction: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC batch size: 15
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC batch updates for versioned data: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Scrollable result sets: enabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC3 getGeneratedKeys(): disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Connection release mode: auto
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default batch fetch size: 1
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Generate SQL with comments: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Order SQL updates by primary key: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Order SQL inserts for batching: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
[hibernatetool] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
[hibernatetool] INFO: Using ASTQueryTranslatorFactory
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Query language substitutions: {}
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JPA-QL strict compliance: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Second-level cache: enabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Query cache: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory createCacheProvider
[hibernatetool] INFO: Cache provider: org.hibernate.cache.NoCacheProvider
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Optimize cache for minimal puts: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Structured second-level cache entries: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Statistics: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Deleted entity synthetic identifier rollback: disabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default entity-mode: pojo
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Named query checking : enabled
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
[hibernatetool] INFO: {TABLE_NAME=DUAL, REMARKS=null, TABLE_TYPE=TABLE, TABLE_SCHEM=SYS, TABLE_CAT=null}
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
[hibernatetool] INFO: {TABLE_NAME=SYSTEM_PRIVILEGE_MAP, REMARKS=Description table for privilege type codes.  Maps privilege  type numbers to type names, TABLE_TYPE=TABLE, TABLE_SCHEM=SYS, TABLE_CAT=null}
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
[hibernatetool] INFO: {TABLE_NAME=TABLE_PRIVILEGE_MAP, REMARKS=Description table for privilege (auditing option) type codes.  Maps privilege (auditing option) type numbers to type names, TABLE_TYPE=TABLE, TABLE_SCHEM=SYS, TABLE_CAT=null}
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
[hibernatetool] INFO: {TABLE_NAME=STMT_AUDIT_OPTION_MAP, REMARKS=Description table for auditing option type codes.  Maps auditing option type numbers to type names, TABLE_TYPE=TABLE, TABLE_SCHEM=SYS, TABLE_CAT=null}
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
[hibernatetool] INFO: {TABLE_NAME=AUDIT_ACTIONS, REMARKS=Description table for audit trail action type codes.  Maps action type numbers to action type names, TABLE_TYPE=TABLE, TABLE_SCHEM=SYS, TABLE_CAT=null}
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
[hibernatetool] INFO: {TABLE_NAME=PSTUBTBL, REMARKS=null, TABLE_TYPE=TABLE, TABLE_SCHEM=SYS, TABLE_CAT=null}
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
[hibernatetool] INFO: {TABLE_NAME=WRI$_ADV_ASA_RECO_DATA, REMARKS=null, TABLE_TYPE=TABLE, TABLE_SCHEM=SYS, TABLE_CAT=null}
[hibernatetool] Oct 7, 2008 9:18:28 AM org.hibernate.cfg.reveng.dialect.OracleMetaDataDialect$1 convertRow
[hibernatetool] INFO: {TABLE_NAME=ODCI_SECOBJ$, REMARKS=null, TABLE_TYPE=TABLE, TABLE_SCHEM=SYS, TABLE_CAT=null}

.
.
.
.

[hibernatetool] Oct 7, 2008 9:16:44 AM org.hibernate.cfg.reveng.JDBCReader processPrimaryKey
[hibernatetool] WARNING: The JDBC driver didn't report any primary key columns in DATABASE_SUMMARY. Asking rev.eng. strategy
[hibernatetool] Oct 7, 2008 9:16:44 AM org.hibernate.cfg.reveng.JDBCReader processPrimaryKey
[hibernatetool] WARNING: Rev.eng. strategy did not report any primary key columns for DATABASE_SUMMARY
[hibernatetool] Oct 7, 2008 9:17:03 AM org.hibernate.connection.DriverManagerConnectionProvider close
[hibernatetool] INFO: cleaning up connection pool: jdbc:oracle:thin:@127.0.0.1:1521:orcl
[hibernatetool] An exception occurred while running exporter #2:hbm2hbmxml (Generates a set of hbm.xml files)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.cfg.JDBCBinderException: Duplicate class name 'AllFileGroups' generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'

BUILD FAILED
E:\WORK\EclipseWrokspace\POJO-Generator\src\build2.xml:45: org.hibernate.cfg.JDBCBinderException: Duplicate class name 'AllFileGroups' generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'

Total time: 53 seconds


i dont know that y it is going for the other schemas (SYS) when i m still connecting with my particular user what i have missed ???


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 08, 2008 3:48 pm 
Newbie

Joined: Wed Oct 08, 2008 2:44 pm
Posts: 2
I am having the same problem.

[hibernatetool] An exception occurred while running exporter #2:hbm2hbmxml (Generates a set of hbm.xml files)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.cfg.JDBCBinderException: Duplicate class name 'AllFileGroups' generated for 'org.hibernate
.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'


BUILD FAILED
C:\BioScope\HibernateTest\build.xml:27: org.hibernate.cfg.JDBCBinderException: Duplicate class name 'AllFileGroups' gene
rated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where generated for 'org.hibernate.mapping.Tabl
e(SYS._ALL_FILE_GROUPS)'


My ant file is:

<project name="Hibernate" default="compile" basedir=".">
<property name="cmd.args" value=""/>
<property name="class.name" value=""/>
<property name="release.version" value="1.0"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="build.classes" value="${build.dir}/classes"/>
<property name="lib.dir" value="lib"/>
<property name="dist.dir" value="dist"/>
<property name="dist.classes" value="${dist.dir}/classes"/>
<property name="jdbc.driver.jar" value="./lib/oracle/jdbc/ojdbc14.jar"/>

<path id="toolslib">
<path location="lib/hibernate-tools.jar" />
<path location="lib/freemarker.jar" />
<path location="lib/hibernate3.jar" />
<path location="${jdbc.driver.jar}" />
<path location="lib/commons-logging.jar" />
<path location="lib/commons-collections.jar" />
<path location="lib/dom4j.jar" />
</path>
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="toolslib" />

<hibernatetool>
<jdbcconfiguration configurationfile="hibernate.cfg.xml" detectmanytomany="false"/>
<hbm2hbmxml destdir="generated" />
</hibernatetool>
</project>

If I change the user to one with permission to access SYS I get a similar error:

[hibernatetool] An exception occurred while running exporter #2:hbm2hbmxml (Generates a set of hbm.xml files)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.cfg.JDBCBinderException: Duplicate class name 'Syscatalog' generated for 'org.hibernate.ma
pping.Table(SYS.SYSCATALOG_)'. Same name where generated for 'org.hibernate.mapping.Table(SYS.SYSCATALOG_)'

BUILD FAILED
C:\BioScope\HibernateTest\build.xml:27: org.hibernate.cfg.JDBCBinderException: Duplicate class name 'Syscatalog' generat
ed for 'org.hibernate.mapping.Table(SYS.SYSCATALOG_)'. Same name where generated for 'org.hibernate.mapping.Table(SYS.SY
SCATALOG_)'


Does anyone have a suggestion as to how to solve this?

thanx


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 09, 2008 11:30 pm 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
so no body know what to do

moderators / gurus :

can anybody respond please


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 10, 2008 7:13 am 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
any body help please

are there any hibernate tools developers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 10, 2008 10:27 pm 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
hello people is anyone there ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 17, 2008 1:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I was out getting married.

If you had googled a bit you would know that oracle reports all its system tables in jdbc metadata and does not do it well.

Hence it is recommended to set hibernate.default_schema when reverse engineering.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 19, 2008 7:06 am 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
max wrote:
I was out getting married.


congrats dude

and let me try that with hibernate.default_schema


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 20, 2008 1:59 am 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
thanks dude it worked

rated ur answer


Top
 Profile  
 
 Post subject: Re: Hibernate Tools not working properly
PostPosted: Wed Jun 02, 2010 11:16 am 
Newbie

Joined: Wed Jun 02, 2010 11:00 am
Posts: 2
I'm having the same problem:
org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS).
However, setting hibernate.default_schema when reverse engineering does not
work; it has no effect at all.

I'm using eclipse seam hibernate tools to reverse engineering to generate java files.
Eclipse 3.5.2
Hibernate Tools for Eclipse 3.3.0
Seam Tools for Eclipse 3.1.0.

Any help will be greatly appreciated.


Top
 Profile  
 
 Post subject: Re: Hibernate Tools not working properly
PostPosted: Thu Jun 03, 2010 12:31 am 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
emm

r u working with a user with all the dba rights?

supplying the schema name in caps might work.


Top
 Profile  
 
 Post subject: Re: Hibernate Tools not working properly
PostPosted: Thu Jun 03, 2010 11:20 am 
Newbie

Joined: Wed Jun 02, 2010 11:00 am
Posts: 2
msj4u wrote:
emm

r u working with a user with all the dba rights?

supplying the schema name in caps might work.



Yes, I have the dba rights.
the default schema name is in caps too.
I tried in both Oracle 10g and 11g but just dont work, very frustrated.


Top
 Profile  
 
 Post subject: Re: Hibernate Tools not working properly
PostPosted: Fri Jun 04, 2010 5:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
eel33 wrote:
I'm having the same problem:
org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS).
However, setting hibernate.default_schema when reverse engineering does not
work; it has no effect at all


if it does not take any effect than either

A) you don't have the property set anywhere so hibernate actually sees it (i.e. hibernate.properties aren't placed correctly, its not loading the same cfg.xml or persistence.xml is not listing it or something similar)

B) you got a schema filter in reveng.xml that says include everything overruling anything else.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.