#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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks