sessionFactory = new AnnotationConfiguration().buildSessionFactory()
I have seen in some instructions that
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory()
is used instead, but then I get the error:
/hibernate.cfg.xml not found
When searching for this problem there are a lot of people having the same problem but I cannot find any answers... And if there are any answers on hibernates own forum it's impossible to find out now since the site has been unavailable for a few days already...
Any help would be most apreciated, about to get a bit (just a little...eh) frustrated.