-->
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: Exception while generating code
PostPosted: Sat Jan 14, 2006 7:45 pm 
Newbie

Joined: Sat Jan 14, 2006 7:36 pm
Posts: 4
Hibernate version: 3.1.0

When I try to generate the code with hibernate code generations I get a HibernateConsoleRuntimeException:

Could not create or find one argument delegate constructor
java.lang.ClassNotFoundException

the \articles\hibernate.cfg.xml and \articles\hibernate.reveng.xml work fine, I see the DB, schema, table, fields, ecc.

please help me!


Top
 Profile  
 
 Post subject: Re: Exception while generating code
PostPosted: Wed Jan 18, 2006 5:13 am 
Newbie

Joined: Wed Jan 18, 2006 4:46 am
Posts: 2
Salvatore.Gerace wrote:
Hibernate version: 3.1.0

When I try to generate the code with hibernate code generations I get a HibernateConsoleRuntimeException:

Could not create or find one argument delegate constructor
java.lang.ClassNotFoundException

the \articles\hibernate.cfg.xml and \articles\hibernate.reveng.xml work fine, I see the DB, schema, table, fields, ecc.

please help me!


I faced exactly the same problem.

To resolve it (at least as far as I know):

Under your code generation config -
set reveng.stategy to
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy
or
org.hibernate.cfg.reveng.DelegatingReverseEngineeringStrategy

I may be wrong, I'm just a new user of Hibernate, anyone having a more expert opinion is welcome.


Top
 Profile  
 
 Post subject: Re: Exception while generating code
PostPosted: Wed Jan 18, 2006 5:26 am 
Newbie

Joined: Wed Jan 18, 2006 4:46 am
Posts: 2
dcatdemon wrote:
Under your code generation config -
set reveng.stategy to
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy
or
org.hibernate.cfg.reveng.DelegatingReverseEngineeringStrategy


Sorry, spelling mistake: should be reveng.strategy.

Regards,
Caleb.


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.