aspose file tools*
The moose likes Object Relational Mapping and the fly likes how do i force a proxy to appear? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how do i force a proxy to appear?" Watch "how do i force a proxy to appear?" New topic

how do i force a proxy to appear?

Elhanan Maayan
Ranch Hand

Joined: May 04, 2009
Posts: 111
assuming i have an object a which child objects b, how do i load the A object a so that it's child objects will initially be CGLIBEnhanced?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Loading an associated object within an open session will automatically load the object. Otherwise, an option is to open a session and reload the object and ensure the associated object is loaded.
I agree. Here's the link:
subject: how do i force a proxy to appear?
Similar Threads
fetching Child objects
How many objects are created ?
TypeCasting Doubt
object creation behind the scenes
inner classes help