-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: org.hibernate.MappingException: An AnnotationConfiguration..
PostPosted: Fri Aug 14, 2009 2:13 am 
Newbie

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.