-->
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.  [ 4 posts ] 
Author Message
 Post subject: hibernate Tools POJO added "Home" in class names
PostPosted: Wed Apr 09, 2008 7:50 pm 
Newbie

Joined: Wed Jun 27, 2007 1:10 am
Posts: 12
I'm using the Hibernate Tools to generate the mapping files and POJOs. I used the reverse engineer config tool to set the filtered tables. The problem is when the POJOs are generated, the class names all have "Home" attached to the table name, i.e. Person table became PersonHome.java. And this gave me compilation errors because Person instead of PersonHome is used everywhere in the POJOs. Can anyone let me know why this is happening?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 10, 2008 12:38 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Can you post the configurations?

_________________
Sukirtha


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 10, 2008 3:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
sounds like you chose to generate DAO's and not just the POJO's

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 10, 2008 2:45 pm 
Newbie

Joined: Wed Jun 27, 2007 1:10 am
Posts: 12
max wrote:
sounds like you chose to generate DAO's and not just the POJO's


Good call! I didn't realize I have DAO generated. Now I have deselected the option and everything looks fine. Thanks a lot.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.