Greetings!
I'm new to JPA and am using EclipseLink 2.3 for persistence and develop with Eclipse (Helios). I do not have
Maven or Spring or anything else.
I would like to
change the location of the
persistence.xml file inside META-INF folder. I have searched extensively and am not able to locate a good answer. Let me explain why.
I'm not too sure about the details of how this works but here is a short description of the setup in which I work and I really cannot change or do anything about this setup.
When I deploy an application on to the server, I copy the contents of the bin of my project to a particular folder on the server. Thus anything related to a project should never start at the root and must always be inside the package making it self contained. So for e.g. if my application is
project2 and my deployment folder is
service, this is the following folder structure:
And since I have started using JPA, I'm faced with the problem of the META-INF folder which is at the root of the project. If I'm using JPA in more than one project I can't have the META-INF folder of the new project at the root. In essence I can't have this:
I would like to move the persistence.xml to reside within the package like:
At the very least, even if I cannot move the META-INF folder, I should be able to relocate persistence.xml away from the root of the project to inside a package of the application.
Can someone please point me in the right direction as to how to accomplish this. Your patience and time is greatly appreciated.