Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311234 - Update Archive hierarchy to allow persitence units with alternate persistence.xml locations
Summary: Update Archive hierarchy to allow persitence units with alternate persistence...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 303078 (view as bug list)
Depends on:
Blocks: 307105
  Show dependency tree
 
Reported: 2010-04-30 15:26 EDT by Tom Ware CLA
Modified: 2022-06-09 10:32 EDT (History)
2 users (show)

See Also:


Attachments
Suggested changes (30.06 KB, patch)
2010-04-30 15:27 EDT, Tom Ware CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Ware CLA 2010-04-30 15:26:31 EDT
Currently our Archive hierarchy.  (org.eclispe.persistence.jpa.Archive and it's implementers) assumes that the persistence.xml is called META-INF/persistence.xml.

We should update the hierarchy to accept persistence.xml files in other directories and xml files with different names.

This is useful for, amount other things, allowing EclipseLInk to work with the OSGi structures defined in the gemini project.
Comment 1 Tom Ware CLA 2010-04-30 15:27:33 EDT
Created attachment 166666 [details]
Suggested changes
Comment 2 Tom Ware CLA 2010-05-03 11:08:51 EDT
This change updates our archive framework to be aware of where the persistence descriptor is and, hence allow persistence descriptors other than META-INF/persistence.xml.  These changes are the first in a set of changes that will allow EclipseLink to run with Gemini.

Tested by running EclipseLink Core and JPA tests both within Eclipse and from ant, also tested with the gemini tests within Eclipse

Reviewed by Peter Krogh
Comment 3 Tom Ware CLA 2010-05-06 10:59:17 EDT
*** Bug 303078 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:32:08 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink