[jboss-user] [EJB 3.0] - Re: ManyToMany bidirectional - inverse side does not load the complete collection

Wolfgang Knauf do-not-reply at jboss.com
Wed Oct 6 16:17:18 EDT 2010


Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/565211#565211

--------------------------------------------------------------
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
[http://community.jboss.org/message/565211#565211]

Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101006/317089d3/attachment-0001.html 


More information about the jboss-user mailing list