Hi,
Is there any way to create a many-to-many mapping without a join table. Just to make something up by way of explanation, something like
Code:
<set name="users" formula="select u.id as user_id, g.id as group_id from .....">
<key column="group_id"/>
<many-to-many column="user_id"/>
</set>
Sure, I could make a view to provide the join table. But is there any way I can do it using just hibernate mapping markup.
Thanks very much,
Mike.
PS This is a more succinct restatement of
http://forum.hibernate.org/viewtopic.php?t=960708