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 start
Hi again George,
strange, the code in the page works for me and also for some people who
have
tested the page. just out of curiosity: which version of Hibernate are
you using ?
Regards,
Johannes
george georgovassilis wrote:
Guten Morgen Johannes
Thank you very much for your help. Your mentioning
strange, the code in the page works for me and also for some people
who have
tested the page. just out of curiosity: which version of Hibernate are
you using ?
Yep, that is strange. But I really couldn't get it otherwise to work.
I'm doing this on plain cocoon (no tomcat or other app server) wi
ok, next time I will read more thoroughly :)
You needed to call configure() because you are using the
hibernate.cfg.xml file,
as opposed to hibernate.properties used by me and in the tutorial, which
is read
automatically when the session is created.
I will add this information to the page. thank