Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Select command problem  RSS feed

Punya Pratap Singh
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created ManyToMany mapping in hibernate. like below -

Test class -

It runs perfectly and creates Vehicle, UserDetails, UserDetails_Vehicle and Vehicle_UserDetails tables.
when I issue select command, all tables except UserDetails_Vehicle shows the table data.
But when I issue select command for UserDetails_Vehicle it says - "UserDetails_Vehicle" table data is not editable because there is no primary key..

Please help me understand why is this happening.
I am using MySql data base and issuing select command in query browser of it to see the table contents.

Thanks a lot.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!