-->
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.  [ 4 posts ] 
Author Message
 Post subject: Collections over WCF
PostPosted: Thu Jan 10, 2008 6:26 pm 
Newbie

Joined: Thu Jan 10, 2008 6:02 pm
Posts: 1
Hi all,

I'm building a WCF service that emits a domain object that contains a Set<>, I noticed that when NHibernate loads an object containing a collection, it replaces the implementation of the iesi.collection with a NHibernate implementation (NHibernate.Collection.Generic.PersistentGenericSet).

The consumers of my service will not have the nhibernate.dll.
Is there any way to make NHibernate not switch out the implementation of the collection? I tried setting lazy to false but this had no impact.


thanks for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 12, 2008 9:14 am 
Contributor
Contributor

Joined: Tue May 30, 2006 1:25 am
Posts: 29
NH is something intrusive with collections.
Any way you can implements you own IUserCollectionType.
An example is available on NH tests.
Bye.

_________________
Fabio Maulo.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 10, 2008 3:52 am 
Newbie

Joined: Tue Sep 09, 2008 3:20 am
Posts: 17
Hi Fabio,

Can you please elaborate on your answer? We are facing the same issue. As we are new to NHibernate can you guide with specific links.

Thanks in advance,

Arvind.


Top
 Profile  
 
 Post subject: Re: Collections over WCF
PostPosted: Fri Aug 14, 2009 3:09 am 
Newbie

Joined: Wed Mar 25, 2009 3:17 am
Posts: 5
Hi. The same question. WCF client will have the only assembly with domain entities.
Is it possible somehow to force NHibernate not to replace collections with it's own? Of course there will be not change tracking, so all items in collection will be updated during each save.


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