Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping.spi

public Class JaxbAssociationOverride

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:association-override
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
propOrder:description, joinColumn, foreignKey, joinTable
Imports
java.io.Serializable, java.util.ArrayList, .List, javax.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlType

@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) public @interface AssociationOverride { String name(); JoinColumn[] joinColumns() default{}; JoinTable joinTable() default @JoinTable; }

Java class for association-override complex type.

The following schema fragment specifies the expected content contained within this class.

<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://xmlns.jcp.org/xml/ns/persistence/orm}join-column" maxOccurs="unbounded" minOccurs="0"/>
            <element name="foreign-key" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}foreign-key" minOccurs="0"/>
          </sequence>
          <element name="join-table" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}join-table" minOccurs="0"/>
        </choice>
      </sequence>
      <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
    </restriction>
  </complexContent>
</complexType>

Field Summary

Modifier and TypeField and Description
protected String
protected JaxbForeignKey
protected List<JaxbJoinColumn>
protected JaxbJoinTable
protected String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

possible object is String
getDescription
()

Gets the value of the description property.

public JaxbForeignKey

Returns:

possible object is JaxbForeignKey
getForeignKey
()

Gets the value of the foreignKey property.

public List<JaxbJoinColumn>
getJoinColumn()

Gets the value of the joinColumn property.

public JaxbJoinTable

Returns:

possible object is JaxbJoinTable
getJoinTable
()

Gets the value of the joinTable property.

public String

Returns:

possible object is String
getName
()

Gets the value of the name property.

public void
setDescription(String
allowed object is String
value
)

Sets the value of the description property.

public void
setForeignKey(JaxbForeignKey
allowed object is JaxbForeignKey
value
)

Sets the value of the foreignKey property.

public void
setJoinTable(JaxbJoinTable
allowed object is JaxbJoinTable
value
)

Sets the value of the joinTable property.

public void
setName(String
allowed object is String
value
)

Sets the value of the name property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptionback to summary
protected String description
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
foreignKeyback to summary
protected JaxbForeignKey foreignKey
Annotations
@XmlElement
name:foreign-key
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
joinColumnback to summary
protected List<JaxbJoinColumn> joinColumn
Annotations
@XmlElement
name:join-column
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
joinTableback to summary
protected JaxbJoinTable joinTable
Annotations
@XmlElement
name:join-table
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
nameback to summary
protected String name
Annotations
@XmlAttribute
name:name
required:true

Constructor Detail

JaxbAssociationOverrideback to summary
public JaxbAssociationOverride()

Method Detail

getDescriptionback to summary
public String getDescription()

Gets the value of the description property.

Returns:String

possible object is String

getForeignKeyback to summary
public JaxbForeignKey getForeignKey()

Gets the value of the foreignKey property.

Returns:JaxbForeignKey

possible object is JaxbForeignKey

getJoinColumnback to summary
public List<JaxbJoinColumn> getJoinColumn()

Gets the value of the joinColumn 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 JAXB object. This is why there is not a set method for the joinColumn property.

For example, to add a new item, do as follows:

   getJoinColumn().add(newItem);

Objects of the following type(s) are allowed in the list JaxbJoinColumn

getJoinTableback to summary
public JaxbJoinTable getJoinTable()

Gets the value of the joinTable property.

Returns:JaxbJoinTable

possible object is JaxbJoinTable

getNameback to summary
public String getName()

Gets the value of the name property.

Returns:String

possible object is String

setDescriptionback to summary
public void setDescription(String value)

Sets the value of the description property.

Parameters
value:String

allowed object is String

setForeignKeyback to summary
public void setForeignKey(JaxbForeignKey value)

Sets the value of the foreignKey property.

Parameters
value:JaxbForeignKey

allowed object is JaxbForeignKey

setJoinTableback to summary
public void setJoinTable(JaxbJoinTable value)

Sets the value of the joinTable property.

Parameters
value:JaxbJoinTable

allowed object is JaxbJoinTable

setNameback to summary
public void setName(String value)

Sets the value of the name property.

Parameters
value:String

allowed object is String