Forums Register Login

Select command problem

+Pie Number of slices to send: Send
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.
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 699 times.
Similar Threads
Many-To-Many relationship not working in Hibernate
Need help for Many to Many association
Error in a second Entity
OneToOne mapping problem
Value for JoinColumn in ManyToOne is getting inserted as Null
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:35:05.