-->
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: Lazy Loading after an object has been serialized
PostPosted: Tue Nov 02, 2004 11:47 am 
Beginner
Beginner

Joined: Sun Oct 03, 2004 8:50 am
Posts: 32
Location: McLean, VA
I just want to verify that I correctly understand what Hibernate is doing in a particular scenario. So, the scenario. In a multi-tiered application, I retrieve an object through some Hibernate fetching mechanism (Query, Criteria, etc) on some tier that is NOT the web tier. I then send the fetched object back to the web tier for display. Are the following two things true?

1. On the non-web tier the returned object is actually something other than my normal POJO. A proxy or wrapper, for instance, generated by CGLIB that allows for things like lazy loading.

2. On the way to the web tier my fetched object is serialized. When it's deserialized it is my POJO and not the CGLIB created object.

Hibernate version:
2.1.6

_________________
- Chad


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.