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
|