-->
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.  [ 7 posts ] 
Author Message
 Post subject: Problem with eclipse code generation
PostPosted: Wed Aug 02, 2006 6:37 am 
Newbie

Joined: Wed Aug 02, 2006 6:27 am
Posts: 5
I have an annotation configuration
In hibernate Console I can see del mapped Class but when i try to run code generation I have this error

org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="..."/>
<No message>


Any suggestion


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 02, 2006 8:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes, remember to enable that checkbox in the console configuration that says "Enable annotations"

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 02, 2006 9:12 am 
Newbie

Joined: Wed Aug 02, 2006 6:27 am
Posts: 5
I had already enable annotation in the Hibernate Console Configuration....
The problem is still here!

Help me!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 02, 2006 9:16 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm....ensure it is enabled, close eclipse start it again and let me know if the problem persists.

I've never seen this error unless that checkbox were unchecked.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 02, 2006 9:34 am 
Newbie

Joined: Wed Aug 02, 2006 6:27 am
Posts: 5
If i disable the checkbox and I try to see the classes in the hibernate configurations section I obtaion the same error.
If i enable the checkbox I can see the classes and the configuration in the right way but I receive the same error and then I can't generate the code.....


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 02, 2006 9:35 am 
Newbie

Joined: Wed Aug 02, 2006 6:27 am
Posts: 5
As information ,
I use Eclipse Callisto with JBossIDE-2.0.0.Alpha1a-ALL.zip plugin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 02, 2006 9:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm...put it in jira and explain what you have actually enabled/disable in the console configuration and with the code generation.

thanks.

_________________
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.  [ 7 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.