I am using eclipse. I am trying to debug an inability to find a persistence block that really resides in the directory structure of my eclipse project.
Where EntityManagerFactory javax.persistence.Persistence.createEntityManagerFactory(String persistenceUnitName, Map properties)to look for the save block?
When I ask where it looks, I mean all the possible resources that can be found, including eclipse configurations, properties in the persistence.xml file, if found, resources found by included JARs, etc. To learn how this works, I run a test program by right-clicking on the Main.java class located in the root directory ( src/main/java) of the eclipse project.
The answer can help me figure out how to set up an eclipse project so that I EntityManagerFactory javax.persistence.Persistence.createEntityManagerFactory(String persistenceUnitName, Map properties)can find the save block.
source
share