-->
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: Problem with code generator
PostPosted: Thu Feb 09, 2006 11:53 am 
Newbie

Joined: Thu Feb 09, 2006 11:36 am
Posts: 1
Hibernate version: 3.1 and tools 3.1.0 beta4

Hi,
following the hibernate tool pdf, I tried to generate some POJO's out of existing mapping files with the eclipse plugin.

There is some strange exception:
org.hibernate.MappingException: Could not read mapping document from
file:...
Quote:
I checked path an file name - so this couldn't be the problem

...
org.hibernate.MappingException: class org.mm.flightplanner.dao.hibernategen.Flight not found while looking for property: id
org.hibernate.MappingException: class org.mm.flightplanner.dao.hibernategen.Flight not found while looking for property: id
java.lang.ClassNotFoundException: org.mm.flightplanner.dao.hibernategen.Flight

However, I did not understand the stack trace here - i.e. why is the tool looking for a class, that code I'm trying to generate here?

Thanks in advance!
Mark


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 12:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it is most likely trying to find the class because you did not specify the type of id - making it pretty hard for it to generate the proper field type.

_________________
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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.