• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Select command problem

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic