Thread:
 force initialization 
 jkookie   07 Jul 2006, 13:03 
 Re: force initialization 
 motravo   07 Aug 2006, 00:59 
 Re: force initialization 
 motravo   07 Aug 2006, 01:36 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: motravo (07 Aug 2006, 01:36) Replies: 0, Views: 25213
Subject: Re: force initialization
>I wish Hibernate provided a way to load an object non-lazily for just a
>single query. There are some cases (for instance, when displaying
>properties of persistent subclass in your presentation layer) where
>using a Visitor is not convenient.

>I'd also settle for a static method in org.hibernate.Hibernate that
>loaded the concrete subclass object given a proxy object.

Actually, object obtained through Session.createQuery (rather than 
Session.load or Session.get) would return the concrete subclass, not a 
proxy.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]