Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349216 - [EclipseLink] element collection not supported in 1.2 eclipselink orm.xml file
Summary: [EclipseLink] element collection not supported in 1.2 eclipselink orm.xml file
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-13 13:29 EDT by Karen Butzke CLA
Modified: 2011-07-01 16:24 EDT (History)
1 user (show)

See Also:


Attachments
stack trace (4.30 KB, text/plain)
2011-06-13 13:29 EDT, Karen Butzke CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2011-06-13 13:29:13 EDT
Created attachment 197907 [details]
stack trace

1. Create an Eclipselink JPA project.
2. Choose New -> XML File
3. Select 'Create an XML file from an XML schema'
4. Select 'Select XML catalog entry' and choose eclipselink_orm_1_2.xsd
5. on the next page select 'Create optional attributes' and 'Create optional elements' and change optional element depth to 6
6. Edit the namespace info and remove the 'orm' prefix
7. finish the wizard and add attempt to add the created xml file to the persistence.xml list of mapping files. The attached ClassCastException occurs


Caused by: java.lang.ClassCastException: org.eclipse.jpt.jpa.eclipselink.core.resource.orm.XmlElementCollection cannot be cast to org.eclipse.jpt.jpa.core.resource.orm.XmlNullAttributeMapping
	at org.eclipse.jpt.jpa.core.context.orm.UnsupportedOrmAttributeMappingDefinition.buildContextMapping(UnsupportedOrmAttributeMappingDefinition.java:60)
Comment 1 Neil Hauge CLA 2011-06-14 16:02:20 EDT
Since element collection was a preview feature in 1.2, we likely did not intend to support this in our 1.2 support in Dali.
Comment 2 Neil Hauge CLA 2011-07-01 16:24:23 EDT
Moving JPA specific bugs to new JPA component in bugzilla.