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
|
|