complexType named-query

complexType {http://java.sun.com/xml/ns/persistence/orm}named-query

Abstractfalse (This can be used in an instance)
Target Namespacehttp://java.sun.com/xml/ns/persistence/orm
Declared Namespacesxmlns:orm=http://java.sun.com/xml/ns/persistence/orm
xmlns:xsd=http://www.w3.org/2001/XMLSchema


Source

<xsd:complexType name="named-query">
    <
xsd:annotation>
        <
xsd:documentation>
@Target({TYPE}) @Retention(RUNTIME)
public @interface NamedQuery {
String name();
String query();
QueryHint[] hints() default {};
}
        
</xsd:documentation>
    </
xsd:annotation>
    <
xsd:sequence>
        <
xsd:element name="query" type="xsd:string"/>
        <
xsd:element name="hint" type="orm:query-hint" minOccurs="0" maxOccurs="unbounded"/>
    </
xsd:sequence>
    <
xsd:attribute name="name" type="xsd:string" use="required"/>
</
xsd:complexType>


Documentation

@Target({TYPE}) @Retention(RUNTIME)
public @interface NamedQuery {
  String name();
  String query();
  QueryHint[] hints() default {};
}


complexType named-query


Stylus Studio XML Schema Library Home
Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio®, a product from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2006 All Rights Reserved.