>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. |