Referring to Pro JPA2, it is mentioned in Chapter 2 that persistence unit and entity manager factory have 1:1 correspondance.
But I tried in my application to create more than one EntityManagerFactory using same persistence unit. I used Persistence class to create EntityManagerFactory.
So, how is it one-to-one correspondance?
I think that is how you would look at it from a logical view, however there is (at least I can't find one) no restriction in the JPA specifications that there should only be one EntityManagerFactory per persistence unit.
today's feeble attempt to support the empire
professionally read, modify and write PDF files from Java