Hi, I have an object called Game. Game has a set of Teams, so in my Game.hbm.xml there is the following entry: (Please see code below.)
Team contains another object called Organization. Organization has an attribute called "name".
When I did something like Game.getTeams(), I get all the teams but it is not ordered by name. How do I modify the code below so that the teams returned will be ordered by organization.name?
<set name="teams" inverse="true">
<column name="gameId" />
<one-to-many class="com.competition.game.team.Team" />