-->
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: Problem with serializing DetachedCriteria in wcf
PostPosted: Fri Nov 24, 2006 5:29 am 
Newbie

Joined: Fri Nov 24, 2006 4:51 am
Posts: 2
DetachedCriteria how it implemented now could not be used in application that uses wc for communication. The reason is that it uses CriteriaImpl class which has one of it field
Code:
private System.Type persistentClass
. Default wcf serializer DataContractSerializer does not support serializing System.Type. System.Type does not have any meaning outside of .net environment. Possible solution could be to change System.Type before serializing (OnSerializing event - it works for this serializer) for some other object and after deserializing (OnDeserialized event) transform this object back to System.Type. I think it is quite important now for NH to work with wcf because MS is deprecating remoting in favor of wcf.


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.