Is there a library/resource for opening and closing JPA EntityTransactions per request like how tapestry-hibernate does? I discovered the wiki page<http://wiki.apache.org/tapestry/Tapestry5_How_To_Integrate_Components_With_Spring_Transactions>on integrating Spring's @Transactional so you could place it on a setupRender( ), but I'm still unsure how you'd use that to encapsulate the request (instead of just one method) -- the core problem here is that we have ORM objects with associations that aren't eagerly fetched (because they're @OneToMany). Thus, outside of the DAO service call (which is annotated with @Transactional), the associations are null. We could use eager fetching per-query or per-class, but I think the most natural fix is opening and closing a transaction per request. Ideas?
Thanks, Jason