Hi,
I'm trying to do the same thing, only I took a slight variation from your design.
I haven't solved it yet and you can see it at
viewtopic.php?f=1&t=1008718The difference with my design is that, my two entities do not have a collection of the joining type.
I'm talking about your following source code:
Code:
<one-to-many class="StudentCourseBean"/>
I don't have that in my source code.
I reckoned such a collection could be quite large and preferred not to have it. I don't need it anyway.
If Hibernate wants me to have such a collection in each of the two entities then I'll add it.
But I would prefer not to have it.
I don't know if my forum post is of any help, but I'm still sitting next to you in the trench :-)