-->
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: Problem with hbm2ddl task
PostPosted: Sat Dec 03, 2005 1:16 pm 
Beginner
Beginner

Joined: Sat Dec 03, 2005 11:12 am
Posts: 27
Hi Team,
I am Newbie to Hibernate. I am sucessfully able to genererate hbm files from java. I am trying to generate database schema from generated hbm files. I was stuck up with this problem I spent considerable amount of time solving it but couldnt this is driving me nuts. Could any one please help with this. Thanks in advance

When i run hbm2ddl task from ant it gives me

hbm2ddl:
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2ddl (Generates database schema)
[hibernatetool] (cfg.Environment 456 ) Hibernate 3.0rc1
[hibernatetool] (cfg.Environment 469 ) hibernate.properties not found
[hibernatetool] (cfg.Environment 502 ) using CGLIB reflection optimizer
[hibernatetool] (cfg.Environment 532 ) using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] (cfg.Configuration 1262) configuring from file: hibernate.cfg.xml
[hibernatetool] (cfg.Configuration 439 ) Mapping resource: Customer.hbm.xml
[hibernatetool] (cfg.HbmBinder 256 ) Mapping class: Customer -> customer
[hibernatetool] (cfg.Configuration 1340) Configured SessionFactory: null
[hibernatetool] (cfg.Configuration 844 ) processing extends queue
[hibernatetool] (cfg.Configuration 848 ) processing collection mappings
[hibernatetool] (cfg.Configuration 857 ) processing association property references
[hibernatetool] (cfg.Configuration 884 ) processing foreign key constraints
[hibernatetool] (dialect.Dialect 89 ) Using dialect: org.hibernate.dialect.OracleDialect
[hibernatetool] (cfg.Configuration 844 ) processing extends queue
[hibernatetool] (cfg.Configuration 848 ) processing collection mappings
[hibernatetool] (cfg.Configuration 857 ) processing association property references
[hibernatetool] (cfg.Configuration 884 ) processing foreign key constraints
[hibernatetool] (cfg.Configuration 844 ) processing extends queue
[hibernatetool] (cfg.Configuration 848 ) processing collection mappings
[hibernatetool] (cfg.Configuration 857 ) processing association property references
[hibernatetool] (cfg.Configuration 884 ) processing foreign key constraints

BUILD FAILED
java.lang.NoSuchMethodError: org.hibernate.tool.hbm2ddl.SchemaExport.setFormat(Z)Lorg/hibernate/tool/hbm2ddl/SchemaExport;

Total time: 3 seconds


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 03, 2005 2:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use the hibernate distributed with the tools with the tools when using the tools...hard sentence but its true ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 03, 2005 4:36 pm 
Beginner
Beginner

Joined: Sat Dec 03, 2005 11:12 am
Posts: 27
Thank you very much for your help. It works now.


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.