These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HOW TO MAP A java.util.List?
PostPosted: Wed Dec 07, 2011 7:38 am 
Newbie

Joined: Mon Oct 19, 2009 4:33 pm
Posts: 8
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.