JPA Container, Hibernate. Spring.

Hi all,

We are running a project where Hibernate+Spring are used. We want to use Vaadin framework for the UI part. At the moment we have a confusion regarding the project architecture, because as we understood, to bind the data with Vaadin components twe have to use the JPA Container Addon.

Am I correct so far?

The next question is what should be the role of JPA Container? Currently, we have the model like DAO->Service->Controller->UI. If we use the JPAContainer, where should it reside? Do we have to remove the service layer in this case, or JPA Container should be encapsulated in the service layer, or etc? What is the best practice for JPA container usage in conjunction with Hibernate and Spring?