Question

I'm in the planning stages of a web site project and deciding on whether to go for OSIV and not use dao(eao)/dto (used dao/dto for an existing project)

im wondering if, with OSIV, the entities should be accessible in the view (for example, with struts2, i could push the entities on to the valuestack and use OGNL in the view templates)

has anyone had success with OSIV and did you allow the entities to be accessed by the view directly?

thanks

(btw: I'm suprised OSIV is not a valid tag)

Was it helpful?

Solution

Some frameworks completely eliminate the need for DTOs and encourage users to just use entities directly in their views and controllers. For example this is the natural/recommended approach for developing JSF+Seam applications. I had used the OSIV pattern years ago with WebWork and we didn't encounter any blocking problems back then.

Besides, OSIV and DAO patterns can be used together.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top