Community
Participate
Working Groups
In bug 335596 support was added for Named Queries on mapped superclasses. When you change the type from Entity to MappedSuperclass using the JPA Details or JPA Outline view the NamedQuery and NamedNativeQuery annotations are lost. There are some junit tests that need to be updated to reflect this as well
Created attachment 207693 [details] proposed patch
Patch committed to head.
There is a test failure in the build as a result, it's an incorrect test since it assumes the query is removed when switching from entity to mapped superclass
Created attachment 207738 [details] additional patch updated test
Verified in Build I-3.4.0-2011122233548 Verified when you add Named Query or Native Named Query in an Entity and change to Mapped Superclass the Query details remain. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.2_M4