Ugo Cei wrote:

Il giorno 08/giu/04, alle 22:34, Nicolas Bielza ha scritto:

Thanks,

Unfortunately, this won't work for me as I'm not running cocoon in a
servlet container.


Then you could explicitly tell hibernate to fetch the child collections, possibly using the size() method:

Parent parent = session.get(Parent.class, id);
parent.getChildren().size();
Yes, but then you loose all the "pull" possibilities of template and hibernate lazy collections. If you have to initialize all entities in the controller you bond it to view much harder as any view change has to be "discussed" with the controller.
LG


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to