File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Does you book make any forays into using Hibernate/OSIV with Struts 2? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Does you book make any forays into using Hibernate/OSIV with Struts 2?" Watch "Does you book make any forays into using Hibernate/OSIV with Struts 2?" New topic
Author

Does you book make any forays into using Hibernate/OSIV with Struts 2?

Jeremy Flowers
Greenhorn

Joined: Aug 04, 2005
Posts: 11
Hi Dave.
Hibernate OSIV / Struts 2 interceptor errors...
I think this is probably a thread you'll remember, since I see you responded over on Nabble and was wondering if it the book covers some of the issues being discussed in these related threads. I found it difficult to visualise some of the stuff being discussed without having an example to work from...

Struts 2: Is Model Driven fundamentally flawed in most uses?

http://www.coderanch.com/t/58423/Struts/Struts-Model-Driven-fundamentally-flawed

You commented here:
http://www.nabble.com/ModelDriven-CRUD-validation-failure-still-causes-JPA-update-td12987242.html

Also related:
http://mail-archives.apache.org/mod_mbox/struts-dev/200804.mbox/%3c20080424114307.ipiiqer2bxsswwkw@webmail.mit.edu%3e

Regards, Jeremy
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Because of the variety of ways people implement back-end storage we decided not to address that. Plus I was running out of my allocated pages :/

Personally OSIV has always made me nervous, the primary reason being that na�vely-written JSP pages could end up performing a huge number of back-end queries leading to very slow performance.

If you're the only one programming the app this isn't as much of a concern, but it can lead to headaches when multiple people are banging on (potentially) lazy-loaded collections.

It's one of those double-edged swords that's really hard to "get right". I don't recall what the end result of that original thread was, either.

Dave
 
 
subject: Does you book make any forays into using Hibernate/OSIV with Struts 2?