The mapping DTD file (hibernate-mapping-3.0.dtd) currently forbids an idbag element inside a component element. Is this policy correct or is it a bug? The component element allows elements like map, set, list and bag, so why forbid idbag?
I have changed the DTD file to allow idbags inside components and so far it seems to be working fine.
I have seen a similar post on the NHibernate forum (
http://forum.hibernate.org/viewtopic.php?t=961716&highlight=idbag+component), but there were no responses. This problem was already reported in the NHibernate Jira, though (
http://jira.nhibernate.org/browse/NH-1044).
So is it a bug or not? Why would this be forbidden?