JBoss Community

Re: ManyToMany bidirectional - inverse side does not load the complete collection

created by Wolfgang Knauf in EJB 3.0 - View the full discussion

I just googled the "open session in view" pattern. It seems this is Hibernate specific, so your app would not be portable to another container or JPA implementation. I would suggest to build the session bean methods in a way that they preload required data for their use case (using e.g. the "appointments.getOffers().size()" approach you mentioned above)

 

Die Welt ist ein Dorf - ich bin im Nebenjob an der FH Wiesbaden ;-)

 

Best regards

 

Wolfgang

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community