facebook

Specifying composite key in Hibernate Mapping Wizard

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #261584 Reply

    shradha
    Member

    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

    #261590 Reply

    Haris Peco
    Member

    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 ?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Specifying composite key in Hibernate Mapping Wizard

You must be logged in to post in the forum log in