This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.