-->
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: org.hibernate.mapping.Table.qualify
PostPosted: Tue Sep 05, 2006 8:32 am 
Newbie

Joined: Tue Sep 05, 2006 8:23 am
Posts: 7
hi all,
i'm a newbie in hibernate; i have a problem with hibernatetool ant task:

i'm using :
Hibernate version: 3.1.3 (because it's the last stable version)
Name and version of the database : Oracle 9.2.0.5

i tryied to reverse engineering ; i want to generate hbm files from the database with hbm2hbmxml and no chance because i got an exception :

here the complete output:



Code:
generateMappingFiles:
[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernatetool] 1. task: cfg2hbm (Generates a set of hbm.xml files)
[hibernatetool] Sep 5, 2006 2:56:26 PM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: Hibernate 3.1.3
[hibernatetool] Sep 5, 2006 2:56:26 PM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: hibernate.properties not found
[hibernatetool] Sep 5, 2006 2:56:26 PM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: using CGLIB reflection optimizer
[hibernatetool] Sep 5, 2006 2:56:26 PM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] Sep 5, 2006 2:56:26 PM org.hibernate.cfg.Configuration configure
[hibernatetool] INFO: configuring from file: hibernate.cfg.xml
[hibernatetool] Sep 5, 2006 2:56:26 PM org.hibernate.cfg.Configuration doConfigure
[hibernatetool] INFO: Configured SessionFactory: null
[hibernatetool] Sep 5, 2006 2:56:26 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] Sep 5, 2006 2:56:26 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: Hibernate connection pool size: 20
[hibernatetool] Sep 5, 2006 2:56:26 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: autocommit mode: false
[hibernatetool] Sep 5, 2006 2:56:27 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@ip:port:database
[hibernatetool] Sep 5, 2006 2:56:27 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: connection properties: {user=practic, password=****}
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: RDBMS: Oracle, version: Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
[hibernatetool] With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
[hibernatetool] JServer Release 9.2.0.5.0 - Production
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC driver: Oracle JDBC driver, version: 9.2.0.5.0
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.dialect.Dialect <init>
[hibernatetool] INFO: Using dialect: org.hibernate.dialect.Oracle9Dialect
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
[hibernatetool] INFO: Using default transaction strategy (direct JDBC transactions)
[hibernatetool] Sep 5, 2006 2:56:28 PM 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] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Automatic flush during beforeCompletion(): disabled
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Automatic session close at end of transaction: disabled
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC batch size: 15
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC batch updates for versioned data: disabled
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Scrollable result sets: enabled
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC3 getGeneratedKeys(): disabled
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Connection release mode: auto
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default batch fetch size: 1
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Generate SQL with comments: disabled
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Order SQL updates by primary key: disabled
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
[hibernatetool] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
[hibernatetool] INFO: Using ASTQueryTranslatorFactory
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Query language substitutions: {}
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Second-level cache: enabled
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Query cache: disabled
[hibernatetool] Sep 5, 2006 2:56:28 PM org.hibernate.cfg.SettingsFactory createCacheProvider
[hibernatetool] INFO: Cache provider: org.hibernate.cache.EhCacheProvider
[hibernatetool] Sep 5, 2006 2:56:29 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Optimize cache for minimal puts: disabled
[hibernatetool] Sep 5, 2006 2:56:29 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Structured second-level cache entries: disabled
[hibernatetool] Sep 5, 2006 2:56:29 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Statistics: disabled
[hibernatetool] Sep 5, 2006 2:56:29 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Deleted entity synthetic identifier rollback: disabled
[hibernatetool] Sep 5, 2006 2:56:29 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default entity-mode: pojo
[hibernatetool] Sep 5, 2006 2:56:32 PM org.hibernate.connection.DriverManagerConnectionProvider close
[hibernatetool] INFO: cleaning up connection pool: jdbc:oracle:thin:@ip:oprt:database

BUILD FAILED
java.lang.NoSuchMethodError: org.hibernate.mapping.Table.qualify(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;C)Ljava/lang/String;


it looks like i have the wrong jar : hibernate3.jar but it's the jar from hibernate3.1.3 distribution....

if you know how to resolv this...please help

thanks,
Viorel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 4:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use the hibernate3.jar that comes with the hibernatetools (its a RC of hibernate3.2)

note does not matter you use this for the tools and not in rest of your app since the output is compliant with H3.x

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 4:58 am 
Newbie

Joined: Tue Sep 05, 2006 8:23 am
Posts: 7
hi,
thanks for the reply. i've upgraded to hibernate 3.2cr4 and i finally succeded in reverse engineering.

thanks
Viorel


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.