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.  [ 3 posts ] 
Author Message
 Post subject: Why 2 java files?
PostPosted: Wed Aug 09, 2006 10:03 am 
Newbie

Joined: Fri Aug 04, 2006 6:09 am
Posts: 18
When using the reverse engineering tool, I get 2 java classes for one table.

I get <table_name>Id.java which seems to be the right one and <table_name>.java which holds an instance of <table_name>Id.

Can i turn this off so i just get <table_name>.java?

Thanks

R


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 09, 2006 10:28 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
Sounds like you either have no primary key on the table, or an aggregated primary key. The {classname}Id.java file defines this primary key AFAIK. Add a primary key and regen to see if that mends your problem.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 4:38 am 
Newbie

Joined: Fri Aug 04, 2006 6:09 am
Posts: 18
yes, you are right.

Thanks


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