-->
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: Depth limit for WCF service.
PostPosted: Sat Feb 05, 2011 3:49 pm 
Newbie

Joined: Sat Feb 05, 2011 3:47 pm
Posts: 2
Hello,

i'm very new to NHibernate (Indirectly, via ActiveRecord, but there is very low user community for the former... That's why i'm trying to ask here).

i'm currently working on a WCF project which uses Castle.ActiveRecord for persistency / abstraction layer. The client consuming the WCF service is Javascript based, and we use ExtJS as our main framework.

Now, let's say i have this:
- Table A.
- Table B with many-to-one to A.
- Table C with many-to-one B and many-to-one A.

All the database fields are mapped perfectly thru ActiveRecord to accessors. When doing for instance: A.find(), it works, and doing aInstance.deliveryBills also works.

Now, to allow the objects to be directly sent over the wire, accessors are marked DataMembers, and objects are DataContract'ed. My problem is that if a method of my WCF returns an instance of A, there is way too much recursion on the serialization...

i'd like to be able to specify a recursion level, but i have no idea on how to do it.
This parameter would ideally be dynamic enough so one function of the WCF service returning instances of A would *NOT* include any B, while another method of my service would return A including it's Bs -> Cs -> As

Any help would be greatly appreciated.

Thanks,
Pierre.


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.