[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1188) Hibernate tool is not generating Pojo classes or Fetching children of database

aditya.barat (JIRA) noreply at atlassian.com
Fri Jun 10 14:17:24 EDT 2011


Hibernate tool is not generating Pojo classes or Fetching children of database
------------------------------------------------------------------------------

                 Key: HBX-1188
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1188
             Project: Hibernate Tools
          Issue Type: Bug
          Components: reverse-engineer
         Environment: Hibernate tool version : 3.4.0.v20110215-1252-H31-GA ; 
Database platform: MYSQL; 
Eclipse version: Eclipse Java EE IDE for Web Developers.
Version: Helios Release
Build id: 20100617-1415

MYSQL driver: mysql-connector-java-5.1.6
            Reporter: aditya.barat
            Priority: Blocker


I have followed all steps required to use Hibernate reverse engineering tool.

1. Create the hibernate-cfg.xml
2. Create the hibernate console configuration.
3. Create the hibernate-reveng.xml 

Also I have enabled full verbose debugging in the hibernate-log4j.properties by setting every parameter to 'debug'

When i configure a new launcher for Hibernate code generation and execute it. Even though I am not getting any errors in console or 'Error Log' but my Domain classes and .hbm.xml are not getting generated. I have selected .hbm.xml and Domain classes in the 'Export' option in my Code generation configuration.

Also if i were to 'refresh' the Database schema then it shows 'Fetching children of database' for some time and then there is no activity. Using the same connection information i am able to view the database tables etc with Razor SQL as well as SQL yog.

Request experts inputs as i have tried many times and verified the configurtaion matches to what is documented.
 
The only output i see in console is like this:  

2011-06-10 22:52:15,332 INFO Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
2011-06-10 22:52:15,428 INFO Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
2011-06-10 22:52:15,428 INFO Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
2011-06-10 22:52:15,428 INFO Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://114.143.95.100:2499/MyTestDB
2011-06-10 22:52:15,429 INFO Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=MydbUser, password=MyPassword}
2011-06-10 22:52:15,838 TRACE Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - total checked-out connections: 0
2011-06-10 22:52:15,838 DEBUG Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - opening new JDBC connection
2011-06-10 22:52:19,723 DEBUG Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - created connection to: jdbc:mysql://114.143.95.100:2499/ Isolation Level: 4
2011-06-10 22:52:20,032 TRACE Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - returning connection to pool, pool size: 1
2011-06-10 22:52:20,032 INFO Worker-5 org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:mysql://114.143.95.100:2499/MyTestDB
2011-06-10 22:53:31,620 INFO main org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
2011-06-10 22:53:31,625 INFO main org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
2011-06-10 22:53:31,625 INFO main org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
2011-06-10 22:53:31,625 INFO main org.hibernate.connection.DriverManagerConnectionProvider - using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://114.143.95.100:2499/MyTestDB
2011-06-10 22:53:31,625 INFO main org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=MydbUser, password=MyPassword}
2011-06-10 22:53:33,905 INFO Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
2011-06-10 22:53:33,906 INFO Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
2011-06-10 22:53:33,906 INFO Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
2011-06-10 22:53:33,906 INFO Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://114.143.95.100:2499/MyTestDB
2011-06-10 22:53:33,906 INFO Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=MydbUser, password=MyPassword}
2011-06-10 22:53:33,908 TRACE Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - total checked-out connections: 0
2011-06-10 22:53:33,908 DEBUG Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - opening new JDBC connection
2011-06-10 22:53:37,647 DEBUG Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - created connection to: jdbc:mysql://114.143.95.100:2499/MyTestDB, Isolation Level: 4
2011-06-10 22:53:37,954 TRACE Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - returning connection to pool, pool size: 1
2011-06-10 22:53:37,955 INFO Worker-8 org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:mysql://114.143.95.100:2499/MyTestDB
 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list