-->
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.  [ 2 posts ] 
Author Message
 Post subject: Databinding problems with ISet (which is not an IList)...
PostPosted: Wed Feb 08, 2006 11:45 pm 
Beginner
Beginner

Joined: Thu Dec 08, 2005 6:49 pm
Posts: 49
I am having a lot of databinding problems which seem to stem from the fact that an ISet is not an IList.

A good example is cascaded comboboxes. There's no problem filling the first one with ICriteria.List() (which does return an IList), but the child comboboxes do not automatically cascade. If I change my one-to-many properties into IList, it starts working. I'm also having more extreme problems with the 3rd party components I'm using based on the same problem.

I read somewhere that adding order-by attributes to many-to-one properties causes NHibernate to create a ListSet instead of a HashedSet, however despite its deceptive name, a ListSet does not implement both ISet and IList.

What tricks are other NHibernate users using to build complex databound winform applications?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2006 5:13 am 
Senior
Senior

Joined: Thu Aug 25, 2005 3:35 am
Posts: 160
You are apparently building a fat-client, where the client has knowledge of nhibernate classes and thus uses it's implementation of iList.
I have a server that uses the nhibernate classes, but a client that just receives iList in the form of arraylists or what-not.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.