vipavel wrote:
You don't have to carry about MTM object. Hibernate does it.
Just make your query for the given object - myEntity.getItems() and you'll get your list
Cool. Thanks. Will this still work if I use annotation based mapping and SQL scripts to create my Database.
What changes should I make to the tables participating in the join?
eg:
User and Document Tables
User ( id, username )
Document (id, documentName)
How will Hibernate create the Join Table? Will it create the Join Table on every deploy?
I wouldn't want hibernate to create a Join Table (through Hibernate). Instead would prefer to create the Join table using SQL script.