complexType entity

complexType {http://java.sun.com/xml/ns/persistence/orm}entity

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="entity">
    <
xsd:annotation>
        <
xsd:documentation>
Defines the settings and mappings for an entity. Is allowed to be
sparsely populated and used in conjunction with the annotations.
Alternatively, the metadata-complete attribute can be used to
indicate that no annotations on the entity class (and its fields
or properties) are to be processed. If this is the case then
the defaulting rules for the entity and its subelements will
be recursively applied.

@Target(TYPE) @Retention(RUNTIME)
public @interface Entity {
String name() default "";
}
        
</xsd:documentation>
    </
xsd:annotation>
    <
xsd:sequence>
        <
xsd:element name="description" type="xsd:string" minOccurs="0"/>
        <
xsd:element name="table" type="orm:table" minOccurs="0"/>
        <
xsd:element name="secondary-table" type="orm:secondary-table" minOccurs="0"
            
maxOccurs="unbounded"/>
        <
xsd:element name="primary-key-join-column" type="orm:primary-key-join-column" minOccurs="0"
            
maxOccurs="unbounded"/>
        <
xsd:element name="id-class" type="orm:id-class" minOccurs="0"/>
        <
xsd:element name="inheritance" type="orm:inheritance" minOccurs="0"/>
        <
xsd:element name="discriminator-value" type="orm:discriminator-value" minOccurs="0"/>
        <
xsd:element name="discriminator-column" type="orm:discriminator-column" minOccurs="0"/>
        <
xsd:element name="sequence-generator" type="orm:sequence-generator" minOccurs="0"/>
        <
xsd:element name="table-generator" type="orm:table-generator" minOccurs="0"/>
        <
xsd:element name="named-query" type="orm:named-query" minOccurs="0" maxOccurs="unbounded"/>
        <
xsd:element name="named-native-query" type="orm:named-native-query" minOccurs="0"
            
maxOccurs="unbounded"/>
        <
xsd:element name="sql-result-set-mapping" type="orm:sql-result-set-mapping" minOccurs="0"
            
maxOccurs="unbounded"/>
        <
xsd:element name="exclude-default-listeners" type="orm:emptyType" minOccurs="0"/>
        <
xsd:element name="exclude-superclass-listeners" type="orm:emptyType" minOccurs="0"/>
        <
xsd:element name="entity-listeners" type="orm:entity-listeners" minOccurs="0"/>
        <
xsd:element name="pre-persist" type="orm:pre-persist" minOccurs="0"/>
        <
xsd:element name="post-persist" type="orm:post-persist" minOccurs="0"/>
        <
xsd:element name="pre-remove" type="orm:pre-remove" minOccurs="0"/>
        <
xsd:element name="post-remove" type="orm:post-remove" minOccurs="0"/>
        <
xsd:element name="pre-update" type="orm:pre-update" minOccurs="0"/>
        <
xsd:element name="post-update" type="orm:post-update" minOccurs="0"/>
        <
xsd:element name="post-load" type="orm:post-load" minOccurs="0"/>
        <
xsd:element name="attribute-override" type="orm:attribute-override" minOccurs="0"
            
maxOccurs="unbounded"/>
        <
xsd:element name="association-override" type="orm:association-override" minOccurs="0"
            
maxOccurs="unbounded"/>
        <
xsd:element name="attributes" type="orm:attributes" minOccurs="0"/>
    </
xsd:sequence>
    <
xsd:attribute name="name" type="xsd:string"/>
    <
xsd:attribute name="class" type="xsd:string" use="required"/>
    <
xsd:attribute name="access" type="orm:access-type"/>
    <
xsd:attribute name="metadata-complete" type="xsd:boolean"/>
</
xsd:complexType>


Documentation

Defines the settings and mappings for an entity. Is allowed to be
sparsely populated and used in conjunction with the annotations.
Alternatively, the metadata-complete attribute can be used to
indicate that no annotations on the entity class (and its fields
or properties) are to be processed. If this is the case then
the defaulting rules for the entity and its subelements will
be recursively applied.
@Target(TYPE) @Retention(RUNTIME)
  public @interface Entity {
  String name() default "";
}


complexType entity


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.