Re: [Resin-interest] Hibernate lazy loading with Quercus

2009-11-24 Thread Michael Rusch
Seems that the objects no longer have the association with valid session, so either the Session or PersistenceManager should be kept around to fill the objects in upon use. Forcing eager load could also be used I think. Alex. Just noting that this can be done on the configuration level,

[Resin-interest] Hibernate lazy loading with Quercus

2009-11-23 Thread Vincent LAUGIER
Title: Vincent LAUGIER Hello, we try to do the following on our php/EJB3 application : find a given client from its lastname using a stateless bean () load his orders using the getter [code] $clients = $client_eao-findBySample($sample_client,false,false);

Re: [Resin-interest] Hibernate lazy loading with Quercus

2009-11-23 Thread Alex
Hello, we try to do the following on our php/EJB3 application : • find a given client from its lastname using a stateless bean () • load his orders using the getter [code] $clients = $client_eao-findBySample($sample_client,false,false); var_dump($clients[0]-getOrders());

Re: [Resin-interest] Hibernate lazy loading with Quercus

2009-11-23 Thread Mattias Jiderhamn
Alex wrote (2009-11-24 06:01): Hello, we try to do the following on our php/EJB3 application : • find a given client from its lastname using a stateless bean () • load his orders using the getter [code] $clients = $client_eao-findBySample($sample_client,false,false);