Injecting EntityManager Vs. EntityManagerFactory
The pros and cons of injecting EntityManagerFactory vs EntityManager are all spelled out in the Spring docs here, I’m not sure if I can improve on that. Saying that, there are some points in your question that should be cleared up. …Spring would create a new instance of a DAO for every web request… This … Read more