> Some people mentioned that they implemented applications with Hibernate > and put them in production. I've achieved that too, but only the > classic JSP/Servlet/DataAccess Webapp. Has anyone implemented a > three-tier system with Hibernate and lazy collections yet?
Depends on what you mean by this :) If you want the toplevel tier (the view) to be able to just wander around in the object model via dot-notation, then no - I have not done that, and no - I'll never implement that :) What I have done is that the top level request some data from my business layer - the business layer opens the session, fetch the data, fill out the possible object graph (with help of Hibernate.initialize(o)) and returns it to the view. Thus here the view got access to an object graph it can start wandering around in - but if it hits some boundary of the object graph that the business layer have not yet "filled in" - they BAM! an Hibernate exception is thrown to tell the developer: "Hey - if you want more data, then ask the business layer for it - don't come here thinking you transparently can fetch data because that can be a performance killer :)" I can't see any other decent way - the View layer should not just assume it got the whole object model available to it... /max ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel