Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#77 AnnotationConfiguration().configure() method not available

open
nobody
None
5
2009-09-16
2009-09-16
Anonymous
No

I was using hibernate with persistence api (annotations). We have the following line of code to intialize the session factory
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();

Every thing worked kool for many days. We need a support of checking connection before usage and tried to use c3p0 but failed saying that AnnotationConfiguration().configure() method was not found... Is there any other alternative ???

Discussion