Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363103

Summary: [Validation] Incorrect validation against @XmlIDREF
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JAXBAssignee: Paul Fullbright <paul.fullbright>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: unspecified   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Repository none

Description Nan Li CLA 2011-11-07 16:36:37 EST
Build Identifier: I-3.1.0-20111103164637

1. Import the attached project to workspace
2. Go to Problems view, there is an error message saying 

In order to be used with XmlIDREF, The schema type of 'managedEmployees' must be 'IDREF'.

3. Open the EmpXMLSchema.xsd, the schema type of 'managedEmployees' actually is IDREF.

This happens when defining the type of the field or property as collection type, e.g. List.


Reproducible: Always
Comment 1 Nan Li CLA 2011-11-07 16:37:55 EST
Created attachment 206553 [details]
Repository
Comment 2 Paul Fullbright CLA 2011-11-11 11:42:07 EST
Resolved in 3.1 RC1
Comment 3 Jolene Moffitt CLA 2011-12-02 11:50:20 EST
Verified in Build S-3.1.0-20111117042513 

Verified when you import the attached project the - In order to be used with XmlIDREF, The schema type of 'managedEmployees' must be 'IDREF' - error does not appear in Problem pane.  See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.1_RC1