cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From george georgovassilis <>
Subject [CLOSED] Hibernate and Cocoon database pool question
Date Mon, 06 Dec 2004 09:11:36 GMT
Guten Morgen Johannes

Thank you very much for your help. Your mentioning the Configuration 
class led me on the right track. One has to 
cfg.configure().buildSessionFactory() instead of
cfg.buildSessionFactory() which was practiced in the tutorial. When I 
changed the code accordingly it also started reading the 
hibernate.cfg.xml and mapped my classes correctly :-)

Best regards

> hi george,
> I just started last week to write the below mentioned tutorial and it 
> is not finished yet.
> net.sf.hibernate.MappingException: Unknown entity class: my.test.Mutex
> I would say that this happens because you did not add the class 
> my.test.Mutex to your
> Hibernate configuration. Can you post the source code of your 
> HibernateFactory class ?
> Did you add a statement like the following;
> cfg.addClass(my.test.Mutex) ?
> How did you add your classes to the hibernate configuration before ?
> Regards,
> Johannes

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message