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

Bug 335596

Summary: NamedQuery support on MappedSuperclasses
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Nan Li <nan.n.li>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: 3.0Keywords: plan
Target Milestone: 3.1 M3Flags: neil.hauge: review+
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch
none
patch neil.hauge: iplog+

Description Karen Butzke CLA 2011-01-27 13:10:48 EST
We need to add NamedQuery/NamedNativeQuery model and UI support to Java MappedSuperclasses in 1.0, 2.0 and EclipseLink. This is not supported in the orm.xml, but maybe it will be added in the 2.1 schema.
Comment 1 Neil Hauge CLA 2011-07-01 16:26:26 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 2 Nan Li CLA 2011-09-26 16:04:04 EDT
Created attachment 204039 [details]
patch

Based on the current specifications, query support of mapped superclass are

1. Java support is available since 1.0 on both generic and EclipseLink platforms
2. XML support is available since 2.1 and only on EclipseLink platform

This patch reflects the query support of mapped superclass as above.
Comment 3 Nan Li CLA 2011-10-18 12:44:00 EDT
Created attachment 205440 [details]
patch

1. Made changes to reflect the package name refactoring made by Karen
2. Changed the hierarchy of some classes
Comment 4 Neil Hauge CLA 2011-10-19 13:45:52 EDT
Patch committed to head.  Will enter separate bug for adding JPQL content assist to MappedSuperclass inside the Java Editor.  Details view already supports this.
Comment 5 Jolene Moffitt CLA 2011-11-16 09:25:01 EST
Verified in Build S-3.1.0RC1-20111111225339 

Verified you can add named query/native named query to mapped superclass. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.1_M3