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: problem using proxies
PostPosted: Thu Dec 08, 2005 5:58 am 
Hi,

I'm still a bit of a newbie to nhibernate and hibernate in general so bear with me..
I'm experiencing a problem where i'm receiving a hybrid collection when loading my data through Criteria.List() - a part of the collection is composed of the lazy loaded proxy classes and a part of it is my original entity classes. The problem I have with this mixed collection is that binding it to a datagrid causes many difficulties and reflection errors from the grid.

How do I fix this?


Top
  
 
 Post subject: just to clarify
PostPosted: Fri Dec 09, 2005 10:06 am 
What i'm searching for is one of the following solutions:

1. A way to force hibernate to return the objects a homogenous collection of either proxies or my actual entity classes. (I don't want to make all instances of this class non-lazy, just the ones i'm binding).

2. A way to operate on the proxy itself and make it transform or reveal the original entity class object.

3. (Unlikely) A way to dupe the grid into accepting the hybrid collection.


Once again, thanks in advance,

dopleware.


Top
  
 
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.