-->
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.  [ 2 posts ] 
Author Message
 Post subject: AnnotationConfiguration error / Code Generation Error
PostPosted: Sun Jun 25, 2006 9:34 pm 
Newbie

Joined: Sun Jun 25, 2006 9:27 pm
Posts: 18
Hi,
I have annotated hibernate files and a hibernate configuration file and want to use the code generator to generate code with it. The Schema export works fine, I also checked the "ejb/annotation"-checkbox, but when trying to run the code-generator in eclipse, i get the Error "org.hibernate.MappingException: an AnnotationConfiguration instance is required to use <mapping class="test.Test"/>, but as I mentioned, the Schema Export for that matter works. It shouldn't be a problem of the annotated POJO, I tried it with a variety of mine, and it always shows the error with the first one in the list.

Anyone got a clue on this? Using the latest version of the code generator...

Thanks,
Flo


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 26, 2006 4:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
open up the console configuration and enable the ejb3/annotation checkbox.

...how do you verify that the schemaexport works ?

_________________
Max
Don't forget to rate


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

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.