persistence@glassfish.java.net

Use of NamedQuery annotation in MappedSuperclass

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Tue, 08 Aug 2006 14:16:22 +0530

Section #8.3.1 of the spec says:
/The NamedQuery and NamedQueries annotations can be applied to an entity
or mapped superclass.//
/
I don't see corresponding element in <mapped-superclass> element in
*orm_1_0.xsd*. Was it not a goal that for every annotation, there is an
equivalent place in the schema?

Secondly, what's the point in allowing NamedQuery to be specified in a
MappedSuperclass, but not in an embeddable class?

Thanks,
Sahoo