Hi,
I have tried this example for mysql db. I found that Book and author table are being populated rightly but the third table book_author is not being populated.
When i change the engine type to Innodb then the records are not being inserted into any of the three table.
Kindly suggest the cause and remedy!
that is great!
but what happens if you need a query that would use that many to many relationship using JPQL, I mean the author_book is not an entity what would you do if for example you need a query to get all the authors who wrote books that have an ID<3
not workin properlyAshish Kumar April 14, 2011 at 5:34 PM
Hi, I have tried this example for mysql db. I found that Book and author table are being populated rightly but the third table book_author is not being populated. When i change the engine type to Innodb then the records are not being inserted into any of the three table. Kindly suggest the cause and remedy!
joinsAkram Malkawe September 7, 2012 at 8:45 AM
that is great! but what happens if you need a query that would use that many to many relationship using JPQL, I mean the author_book is not an entity what would you do if for example you need a query to get all the authors who wrote books that have an ID<3
About cascade=CascadeType.ALL ???Sandy Noa Cabrera October 17, 2012 at 7:32 PM
What's the result of remove bookRecord ?? It removes the authors too ???
Post your Comment