I have class Game that has collection of players. This snippet is from Game.hbm.xml:
How can I get Game if I have one of its players? I use HibernateTemplate, maybe it has any handy methods for this purpose?
<set name="players" access="property" table="players" cascade="all"> <key column="game_id"/> <one-to-many class="Player"/> </set>