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: Support for new Orcas HashSet<T>?
PostPosted: Tue Feb 26, 2008 3:46 pm 
Newbie

Joined: Sun Jan 20, 2008 3:59 pm
Posts: 3
Location: Washington, DC
Now that .Net has a native HashSet implementation (in Orcas), can we use that instead of Iesi.Collections? Do we need to do any special mapping or create a custom user collection type to make it work with NHibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 27, 2008 8:23 am 
Senior
Senior

Joined: Thu Feb 09, 2006 1:30 pm
Posts: 172
No you can't, and it's unlikely you will be able to in the future. The biggest issue here is that there is no ISet interface in the .net library, they just added a specific implementation.

Keep in mind that NHibernate needs the ability to swap out your set implementation with its own so that it can track state changes of a collection. Internally NHibernate actually uses its own PersistentGenericSet<T> when you attach an ojbect to a session. If they had an ISet<T>, then I would assume it would be possible to swap out the Iesi set collections in the future, but without it I think it is rather doubtful.


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.