-->
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: CGLIB problem
PostPosted: Mon Mar 06, 2006 10:05 am 
Newbie

Joined: Mon Mar 06, 2006 7:21 am
Posts: 6
I have a jsp client that gain access to the business layer by RMI protocol and
the data access layer managed by hibernate.

I have noted that the domain object provided by my business layer is not indipendent
from hibernate since the CGLIB library insert code into the object.

i would that my client is indipendent if possible because this features give me some problem,
for example the client must have the hibernate jar library.


Top
 Profile  
 
 Post subject: cglib
PostPosted: Mon Mar 06, 2006 1:54 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
I suggest NOT using lazy="true" on any objects you may want to send to the client and also you may need to pass your objects through a filter that will replace Hibernate's collection implementations with standard ones.
Something like this:
p = o.getProperty(name);
if( isCollection( p ) ){
o.setProperty( name, toStandardCollection( p ) );
}

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.