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.