Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
shradha
Post subject: Specifying composite key in Hibernate Mapping Wizard  PostPosted: Nov 10, 2006 - 02:44 PM



Joined: Nov 10, 2006
Posts: 2

Hi,
I want to reverse engineer a table which has a composite key. If I select the "Generate basic typed composite IDs" check box in the Hibernate Mapping and Application Generation Wizard and then go on to complete the wizard, the composite key that is generated has all the comlumns in the table.

Using the wizard, is there any way where we can specify the columns that must be included in the composite key?

I know there is a way to do this in Hibernate plugin for eclipse but am not sure about myeclipse.

any help would be much appreciated!!

Regards,
Shradha
 
 View user's profile Send private message  
Reply with quote Back to top
support-snpe
Post subject:   PostPosted: Nov 10, 2006 - 04:54 PM
Moderator
Moderator


Joined: Feb 03, 2006
Posts: 1117

Shradha,

MyEclipse chooses ID for hibernate from data in your database (primary keys, unique keys, foreign key ...). You can only change it in mapping editor.

Regards,

PS
What hibernate plugin do you use ?

_________________
Peco
MyEclipse Support
Please do us a big favor and remember to vote for MyEclipse at the JDJ Reader's Choice Awards.
We really appreciate it!
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits