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


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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to