| Summary: | [EclipseLink] element collection not supported in 1.2 eclipselink orm.xml file | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> | ||||
| Component: | JPA | Assignee: | Neil Hauge <neil.hauge> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P4 | CC: | neil.hauge | ||||
| Version: | 3.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
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. Moving JPA specific bugs to new JPA component in bugzilla. |
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)