Class JaxbAssociationOverrideImpl
java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbAssociationOverrideImpl
- All Implemented Interfaces:
Serializable
@Repeatable(AssociationOverrides.class)
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
public @interface AssociationOverride {
String name();
JoinColumn[] joinColumns() default{};
ForeignKey foreignKey() default @ForeignKey(PROVIDER_DEFAULT);
JoinTable joinTable() default @JoinTable;
}
<p>Java class for association-override complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<complexType name="association-override">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<choice>
<sequence>
<element name="join-column" type="{http://www.hibernate.org/xsd/orm/mapping}join-column" maxOccurs="unbounded" minOccurs="0"/>
<element name="foreign-key" type="{http://www.hibernate.org/xsd/orm/mapping}foreign-key" minOccurs="0"/>
</sequence>
<element name="join-table" type="{http://www.hibernate.org/xsd/orm/mapping}join-table" minOccurs="0"/>
</choice>
</sequence>
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
}</pre>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected JaxbForeignKeyImplprotected List<JaxbJoinColumnImpl> protected JaxbJoinTableImplprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the description property.Gets the value of the foreignKeys property.Gets the value of the joinColumns property.Gets the value of the joinTable property.getName()Gets the value of the name property.voidsetDescription(String value) Sets the value of the description property.voidsetForeignKeys(JaxbForeignKeyImpl value) Sets the value of the foreignKeys property.voidsetJoinTable(JaxbJoinTableImpl value) Sets the value of the joinTable property.voidSets the value of the name property.
-
Field Details
-
description
-
joinColumns
-
foreignKeys
-
joinTable
-
name
-
-
Constructor Details
-
JaxbAssociationOverrideImpl
public JaxbAssociationOverrideImpl()
-
-
Method Details
-
getDescription
-
setDescription
-
getJoinColumns
Gets the value of the joinColumns property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the joinColumns property.For example, to add a new item, do as follows:
getJoinColumns().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbJoinColumnImpl- Returns:
- The value of the joinColumns property.
-
getForeignKeys
Gets the value of the foreignKeys property.- Returns:
- possible object is
JaxbForeignKeyImpl
-
setForeignKeys
Sets the value of the foreignKeys property.- Parameters:
value- allowed object isJaxbForeignKeyImpl
-
getJoinTable
Gets the value of the joinTable property.- Returns:
- possible object is
JaxbJoinTableImpl
-
setJoinTable
Sets the value of the joinTable property.- Parameters:
value- allowed object isJaxbJoinTableImpl
-
getName
-
setName
-