-->
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: Confused about POJO generation from existing hbm
PostPosted: Sun Dec 18, 2005 10:22 pm 
Newbie

Joined: Sun Dec 18, 2005 10:04 pm
Posts: 2
Hi. I have reverse engineered and then substantially modified an hbm using the Eclipse tool. I only wanted a small subset of the properties in my POJO's (it's just read only access of a small subset of information in the DB). Now I want to generate the POJO business objects to match that (single) hbm file, but I can't figure out how to do it using the eclipse tool - and I'm too lazy to try out the Ant task.

If I try to do it with Run->Hibernate Code Generation..., create a new config that uses a Console Configuration with my hbm file, it throws a ClassNotFoundException saying that it can't find the class that I want it to generate!

What am I missing?? In the manual at http://www.hibernate.org/hib_docs/tools ... index.html it says in "6. Reverse engineering and code generation" to choose the "Hibernate Artifact Generation Wizard". I can't find this wizard anywhere.

I am using 3.1 beta 2.

Thanks,
Mark


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 19, 2005 3:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the docs is not uptodate to all the ui - the Run/Hibernate Code Generation is just what you are looking for.

I'll assume that the problem is that you did not specify types for all the properties thus hibernate will try and use reflection to figure it out which obviously will fail since you are about to generate that class ;)

but if that is not the case then show the mapping file.

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