Hello,
I'm new to hibernate and am stuck on this issue for sometime now and would really appreciate some help.
I have two tables - GROUP and PRODUCT
Its a many to many association between them.
A group can have many products
A product can belong to many groups
So I have a join table - GROUP_PRODUCT which has groupID and productID.
But it also has an extra column userID
This is what I have added in my Group.hbm.xml file for this purpose
This is what I have product.hbm.xml for this purpose
Now when I try to create a group and add a product to this group, I see the following sql statements followed by this error:
If you look at the 2nd sql,the insert statement does not even include the extra field userID
I know I'm missing something very basic here. So if you could point me in the right direction - I would greatly appreciate it.
Thanks