-->
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.  [ 3 posts ] 
Author Message
 Post subject: 3.1beta4: <hbm2java> for Oracle XE 10g in an endless l
PostPosted: Wed Mar 08, 2006 11:24 am 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
Hibernate version: 3.2alpha1
Database: Oracle XE 10g

When running <hbm2java> against an Oracle database I get the appended log messages. The last two lines are repeated in an endless loop. Using PostgreSQL 8.1.3 everything works fine.

Output of <hbm2java>:

[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] INFO cfg.Environment - Hibernate 3.2 alpha1
[hibernatetool] INFO cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.connection.username=hska, hibernate.connection.password=****, hibernate.connection.pool_size=1, hibernate.dialect=org.hibernate.dialect.OracleDialect, hibernate.connection.url=jdbc:oracle:thin:@localhost:1521:XE, hibernate.bytecode.use_reflection_optimizer=true, hibernate.connection.driver_class=oracle.jdbc.OracleDriver}
[hibernatetool] INFO cfg.Environment - using bytecode reflection optimizer
[hibernatetool] INFO cfg.Environment - Bytecode provider name : cglib
[hibernatetool] INFO cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] INFO connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] INFO connection.DriverManagerConnectionProvider - Hibernate connection pool size: 1
[hibernatetool] INFO connection.DriverManagerConnectionProvider - autocommit mode: false
[hibernatetool] INFO connection.DriverManagerConnectionProvider - using driver: oracle.jdbc.OracleDriver at URL: jdbc:oracle:thin:@localhost:1521:XE
[hibernatetool] INFO connection.DriverManagerConnectionProvider - connection properties: {user=hska, password=****}
[hibernatetool] INFO cfg.SettingsFactory - RDBMS: Oracle, version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
[hibernatetool] INFO cfg.SettingsFactory - JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0XE
[hibernatetool] INFO dialect.Dialect - Using dialect: org.hibernate.dialect.OracleDialect
[hibernatetool] INFO transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
[hibernatetool] INFO transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[hibernatetool] INFO cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
[hibernatetool] INFO cfg.SettingsFactory - Automatic session close at end of transaction: disabled
[hibernatetool] INFO cfg.SettingsFactory - JDBC batch size: 15
[hibernatetool] INFO cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
[hibernatetool] INFO cfg.SettingsFactory - Scrollable result sets: enabled
[hibernatetool] INFO cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
[hibernatetool] INFO cfg.SettingsFactory - Connection release mode: auto
[hibernatetool] INFO cfg.SettingsFactory - Default batch fetch size: 1
[hibernatetool] INFO cfg.SettingsFactory - Generate SQL with comments: disabled
[hibernatetool] INFO cfg.SettingsFactory - Order SQL updates by primary key: disabled
[hibernatetool] INFO cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernatetool] INFO ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
[hibernatetool] INFO cfg.SettingsFactory - Query language substitutions: {}
[hibernatetool] INFO cfg.SettingsFactory - Second-level cache: enabled
[hibernatetool] INFO cfg.SettingsFactory - Query cache: disabled
[hibernatetool] INFO cfg.SettingsFactory - Cache provider: org.hibernate.cache.EhCacheProvider
[hibernatetool] INFO cfg.SettingsFactory - Optimize cache for minimal puts: disabled
[hibernatetool] INFO cfg.SettingsFactory - Structured second-level cache entries: disabled
[hibernatetool] INFO cfg.SettingsFactory - Statistics: disabled
[hibernatetool] INFO cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
[hibernatetool] INFO cfg.SettingsFactory - Default entity-mode: pojo
[hibernatetool] WARN cfg.JDBCBinder - The JDBC driver didn't report any primary key columns in CTX_CLASSES. Asking rev.eng. strategy
[hibernatetool] WARN cfg.JDBCBinder - Rev.eng. strategy did not report any primary key columns for CTX_CLASSES


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 4:18 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
repeated as in doing it for the same table over and over again ? that sounds strange - it is more likely that you are trying to reverse engineer the complete schema of your oracle installation instead of choosing a subset.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 10:30 pm 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
Thank you. Setting the property hibernate.default_schema solved the problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.