I did some research on JSF and JPA. Read some tutorials and followed some examples. Before this, I would create Managed Beans, Models and Services to handle my application.
What is the best practice to include JPA in this pattern? Should I include the JPQL queries and database calls in the same Service classes? In some example I saw JPA implemented in the same managed bean as the methods called in the Invoke application phase or I saw JPA implemented in other managed beans? What is the common practice to work with these two?