Class JaxbElementCollectionImpl

java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbElementCollectionImpl
All Implemented Interfaces:
Serializable, JaxbBasicMapping, JaxbLockableAttribute, JaxbPersistentAttribute, JaxbPluralAttribute, JaxbStandardAttribute

public class JaxbElementCollectionImpl extends Object implements Serializable, JaxbBasicMapping, JaxbPluralAttribute
@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface ElementCollection { Class<?> targetClass() default void.class; FetchType fetch() default FetchType.LAZY; } <p>Java class for element-collection complex type</p>. <p>The following schema fragment specifies the expected content contained within this class.</p> <pre>{@code <complexType name="element-collection"> <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> <choice> <element name="column" type="{http://www.hibernate.org/xsd/orm/mapping}column" minOccurs="0"/> <element name="formula" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </choice> <choice> <element name="temporal" type="{http://www.hibernate.org/xsd/orm/mapping}temporal" minOccurs="0"/> <element name="enumerated" type="{http://www.hibernate.org/xsd/orm/mapping}enumerated" minOccurs="0"/> <element name="lob" type="{http://www.hibernate.org/xsd/orm/mapping}lob" minOccurs="0"/> <element name="nationalized" type="{http://www.hibernate.org/xsd/orm/mapping}nationalized" minOccurs="0"/> </choice> <group ref="{http://www.hibernate.org/xsd/orm/mapping}basic-type-group"/> </sequence> <sequence> <element name="attribute-override" type="{http://www.hibernate.org/xsd/orm/mapping}attribute-override" maxOccurs="unbounded" minOccurs="0"/> <element name="association-override" type="{http://www.hibernate.org/xsd/orm/mapping}association-override" maxOccurs="unbounded" minOccurs="0"/> <element name="convert" type="{http://www.hibernate.org/xsd/orm/mapping}convert" maxOccurs="unbounded" minOccurs="0"/> </sequence> </choice> <element name="collection-table" type="{http://www.hibernate.org/xsd/orm/mapping}collection-table" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="target-class" 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="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="classification" type="{http://www.hibernate.org/xsd/orm/mapping}limited-collection-classification-enum" /> </restriction> </complexContent> </complexType> }</pre>
See Also: