this message is such a big lie...
The content of element type "list" must match "(meta*,subselect?,cache?,synchronize*,comment?,key,(index|list-index),(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)"Hibernate should worry about not supporting the mapping for this kind of Collection "We just map Set's, List is too complicated".
Didnt work with INDEX, LIST-INDEX.. always the same message when i try to validate this...
Code:
<list name="afiliadoDDMList" table="afiliado_ddm" inverse="false" lazy="false" fetch="select">
//option 1
<list-index column="id" />
//option 2
<index><column name="id" index="id" /></index>
//option 3
<index column="id"/>
<key column="afiliado_discapacitado" not-null="true" />
<one-to-many class="modelo.AfiliadoDDM"/>
</list>