Just for the sake of discussion, the approach I took was to use service
objects for all hibernate and business operations. I inject the service
into the page with @InjectObject("spring:myService") and then my page
code ends up being very small. Plus my services are tested separately in
their own unit tests. That way my pages don't have to know anything
about hibernate sessions or anything about the data layer.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to