I’m using EclipseLink as my JPA implementation. Our project has a directory where we keep all of our config files, and I would like to store my persistence.xml file in the config directory, but cannot find any way to tell createEntityManagerFactory to look there to find the persistence-unit.
I’m using EclipseLink as my JPA implementation. Our project has a directory where we
Share
persistence.xmlmust always be present withinMETA-INFdirectory in the classpath. More on where should META-INF be present for different types of java applications can be found here.