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.  [ 3 posts ] 
Author Message
 Post subject: Using <list> with Entity.
PostPosted: Thu Jul 20, 2006 11:21 am 
Newbie

Joined: Mon Jan 23, 2006 11:44 pm
Posts: 15
Location: New Jersey, US
Hi,

I am so confused on which sorted collection to use. A list seems suit with what I need so I use the following mapping:

<list name="Items" table="Items" inverse="true" lazy="true" cascade="all-delete-orphan">
<key column="BillId"></key>
<index column="Sequence" type="Int32"></index>
<one-to-many class="Item"/>
</list>

When I test it, the Sequence column in Items table is not updated at all. In NHibernate document all <list> samples use component or value type as collection elements. Can I use it with another mapped entity as the element?


Thanks,

Hongze


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 10:18 am 
Regular
Regular

Joined: Wed Oct 25, 2006 10:51 pm
Posts: 71
I have this same problem at the moment.


Last edited by PandaWood on Sat Jul 12, 2008 11:08 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 12:21 am 
Regular
Regular

Joined: Wed Oct 25, 2006 10:51 pm
Posts: 71
I thought I'd solved this, but I deleted the post, as it was misleading.


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

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.