Class JaxbAssociationOverrideImpl

java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbAssociationOverrideImpl
All Implemented Interfaces:
Serializable

public class JaxbAssociationOverrideImpl extends Object implements 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 Details

  • Constructor Details

    • JaxbAssociationOverrideImpl

      public JaxbAssociationOverrideImpl()
  • Method Details

    • getDescription

      public String getDescription()
      Gets the value of the description property.
      Returns:
      possible object is String
    • setDescription

      public void setDescription(String value)
      Sets the value of the description property.
      Parameters:
      value - allowed object is String
    • getJoinColumns

      public List<JaxbJoinColumnImpl> 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 set method 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

      public JaxbForeignKeyImpl getForeignKeys()
      Gets the value of the foreignKeys property.
      Returns:
      possible object is JaxbForeignKeyImpl
    • setForeignKeys

      public void setForeignKeys(JaxbForeignKeyImpl value)
      Sets the value of the foreignKeys property.
      Parameters:
      value - allowed object is JaxbForeignKeyImpl
    • getJoinTable

      public JaxbJoinTableImpl getJoinTable()
      Gets the value of the joinTable property.
      Returns:
      possible object is JaxbJoinTableImpl
    • setJoinTable

      public void setJoinTable(JaxbJoinTableImpl value)
      Sets the value of the joinTable property.
      Parameters:
      value - allowed object is JaxbJoinTableImpl
    • getName

      public String getName()
      Gets the value of the name property.
      Returns:
      possible object is String
    • setName

      public void setName(String value)
      Sets the value of the name property.
      Parameters:
      value - allowed object is String