Class JaxbManyToManyImpl

java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbManyToManyImpl
All Implemented Interfaces:
Serializable, JaxbAssociationAttribute, JaxbCascadableAttribute, JaxbJoinTableCapable, JaxbLockableAttribute, JaxbNotFoundCapable, JaxbPersistentAttribute, JaxbPluralAttribute, JaxbStandardAttribute

@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface ManyToMany { Class<?> targetEntity() default void.class; CascadeType[] cascade() default {}; FetchType fetch() default FetchType.LAZY; String mappedBy() default ""; } <p>Java class for many-to-many complex type</p>. <p>The following schema fragment specifies the expected content contained within this class.</p> <pre>{@code <complexType name="many-to-many"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <group ref="{http://www.hibernate.org/xsd/orm/mapping}collection-structure-group"/> <choice> <sequence> <element name="join-table" type="{http://www.hibernate.org/xsd/orm/mapping}join-table" minOccurs="0"/> <element name="sql-join-table-restriction" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="filter-join-table" type="{http://www.hibernate.org/xsd/orm/mapping}filter" maxOccurs="unbounded" minOccurs="0"/> </sequence> </choice> <element name="cascade" type="{http://www.hibernate.org/xsd/orm/mapping}cascade-type" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="target-entity" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="fetch" type="{http://www.hibernate.org/xsd/orm/mapping}fetch-type" /> <attribute name="fetch-mode" type="{http://www.hibernate.org/xsd/orm/mapping}plural-fetch-mode" /> <attribute name="access" type="{http://www.hibernate.org/xsd/orm/mapping}access-type" /> <attribute name="attribute-accessor" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="mapped-by" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="orphan-removal" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="classification" type="{http://www.hibernate.org/xsd/orm/mapping}limited-collection-classification-enum" /> <attribute name="not-found" type="{http://www.hibernate.org/xsd/orm/mapping}not-found-enum" /> <attribute name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType> }</pre>
See Also: