Joined: Thu Aug 13, 2009 12:09 am Posts: 5
|
While trying to configure a new project using hibernate I get the following error:
Caused by: org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="com.qsd.accessdb.DatestimesEntity"/>
This happens when the code is creating the SessionFactory: sessionFactory = new Configuration().configure().buildSessionFactory();
What is causing this and whats the fix? I'm not using annotations, at least my POJOs are not annotated and I don't have the hibernate annotations jar on the classpath.
Whats going on here?
|
|