Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327908 - Whitespace should be ignored by persistence.xml parser
Summary: Whitespace should be ignored by persistence.xml parser
Status: RESOLVED FIXED
Alias: None
Product: Gemini.JPA
Classification: RT
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.0.0 M2   Edit
Assignee: Michael Keith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-15 11:36 EDT by Tom Ware CLA
Modified: 2010-10-15 16:02 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Ware CLA 2010-10-15 11:36:01 EDT
Gemini JPA won't match the persistence provider defined in the xml if it is defined like this:

        <provider>
            org.eclipse.persistence.jpa.PersistenceProvider
        </provider>

The parser keeps the whitespace characters including "\n" and spaces so when Gemini compares the provider defined in the persistence.xml with the legal providers, the comparison fails.

To Recreate:

Deploy a persistence unit on Gemini using EclipseLink as the provider with provider defined as above.

Workaround:

        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
Comment 1 Michael Keith CLA 2010-10-15 14:25:31 EDT
Fixed.
Comment 2 Michael Keith CLA 2010-10-15 14:26:26 EDT
Added trimming.