posted 16 years ago
Hi everyone!, I'm developing my first application using hibernate and I'm having an error while I'm mapping a many to many relation. I've tried several times to fix it but I haven't been able to do it so I decided to ask you.
Basically the relation is this: A Group is made of many Users and a User can be part of many Groups.
Please if anyone could tell me something it would be very useful since I have no experience with this framework. I know this post could be pretty long but I'm desperate to fix this.
Thanks in advance to everyone!
Regards.
Rodrigo
Here I give you the User class:
Here's the User hbm:
Here's the group class:
Here's the Group hbm:
Here's the code where I'm relating the user with the group:
Here's the save group method:
And Finally the stacktrace: