Setting the mapping of the association to EAGER does work, the second association is then, though set to EAGER as well, not being initialized for the following reason (taken from 'Hibernate in Action''):
Hibernate currently limits you to fetching just one collection eagerly. This is a reasonable restriction, since fetching more than one collection in a single
query would be a Cartesian product result. This restriction might be relaxed
in a future version of Hibernate, but we encourage you to think about the
size of the result set if more than one collection is fetched in an outer join.
So if you have problems with setting EAGER modes at runtime it's most probably because of this restriction or because of the following, already known and unfortunatelly still open issue:
http://opensource.atlassian.com/projects/hibernate/browse/HB-763
I still have the problem that i'd like to set the mapping for all the associations in the mapping files to lazy='true' and to deside each time when i run queries whether i' like to load and initialize all, some or none of the associated collections. I don't want to set outer-join property to "true", but lazy to "false" programmatically.
I still haven't found what i was looking for ....