Class JaxbOneToOneImpl

java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbOneToOneImpl
All Implemented Interfaces:
Serializable, JaxbAssociationAttribute, JaxbCascadableAttribute, JaxbJoinTableCapable, JaxbLockableAttribute, JaxbPersistentAttribute, JaxbSingularAssociationAttribute, JaxbSingularAttribute, JaxbStandardAttribute

@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface OneToOne { Class<?> targetEntity() default void.class; CascadeType[] cascade() default {}; FetchType fetch() default FetchType.EAGER; boolean optional() default true; String mappedBy() default ""; boolean orphanRemoval() default false; } <p>Java class for one-to-one complex type</p>. <p>The following schema fragment specifies the expected content contained within this class.</p> <pre>{@code <complexType name="one-to-one"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice> <sequence> <element name="primary-key-join-column" type="{http://www.hibernate.org/xsd/orm/mapping}primary-key-join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="primary-key-foreign-key" type="{http://www.hibernate.org/xsd/orm/mapping}foreign-key" minOccurs="0"/> </sequence> <sequence> <sequence> <sequence> <choice maxOccurs="unbounded"> <element name="join-column" type="{http://www.hibernate.org/xsd/orm/mapping}join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="join-formula" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> </choice> <element name="foreign-key" type="{http://www.hibernate.org/xsd/orm/mapping}foreign-key" minOccurs="0"/> </sequence> <element name="property-ref" type="{http://www.hibernate.org/xsd/orm/mapping}property-ref"/> </sequence> </sequence> <element name="join-table" type="{http://www.hibernate.org/xsd/orm/mapping}join-table" minOccurs="0"/> </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}singular-fetch-mode" /> <attribute name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <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="mapped-by" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="orphan-removal" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="maps-id" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType> }</pre>
See Also: