Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jeremy Flowers
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic