It appears that the mapping schema does not adding a <meta-value> child node to a <many-to-any> node that can be used inside a <bag>.
This means that the problem I raised regarding being unable to load objects after recompilation (see post
http://nhibernate.sourceforge.net/forum/viewtopic.php?t=1093) can't be rectified in a <many-to-any> because there's no way to override the way in which NHibernate persists the identifier of the class.
I'm assuming that this is a bug since there is a 'meta-type' attribute on the <many-to-any> tag which indicates that it should probably be possible to set meta-type="string" and provide any <meta-value> tags required to provide the required control.
Can anyone confirm?
Cheers,
Symon.