complexType many-to-many

complexType {http://java.sun.com/xml/ns/persistence/orm}many-to-many

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="many-to-many">
    <
xsd:annotation>
        <
xsd:documentation>
@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface ManyToMany {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default LAZY;
String mappedBy() default "";
}
        
</xsd:documentation>
    </
xsd:annotation>
    <
xsd:sequence>
        <
xsd:element name="order-by" type="orm:order-by" minOccurs="0"/>
        <
xsd:element name="map-key" type="orm:map-key" minOccurs="0"/>
        <
xsd:element name="join-table" type="orm:join-table" minOccurs="0"/>
        <
xsd:element name="cascade" type="orm:cascade-type" minOccurs="0"/>
    </
xsd:sequence>
    <
xsd:attribute name="name" type="xsd:string" use="required"/>
    <
xsd:attribute name="target-entity" type="xsd:string"/>
    <
xsd:attribute name="fetch" type="orm:fetch-type"/>
    <
xsd:attribute name="mapped-by" type="xsd:string"/>
</
xsd:complexType>


Documentation

@Target({METHOD, FIELD}) @Retention(RUNTIME)
public @interface ManyToMany {
  Class targetEntity() default void.class;
  CascadeType[] cascade() default {};
  FetchType fetch() default LAZY;
  String mappedBy() default "";
}


complexType many-to-many


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.