public class AssociationOverride extends Object
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) public @interface AssociationOverride { String name(); JoinColumn[] joinColumns() default{}; JoinTable joinTable() default @JoinTable; }
<p>Java class for association-override complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <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> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected ForeignKey |
foreignKey |
protected List<JoinColumn> |
joinColumn |
protected JoinTable |
joinTable |
protected String |
name |
| Constructor and Description |
|---|
AssociationOverride() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the value of the description property.
|
ForeignKey |
getForeignKey()
Gets the value of the foreignKey property.
|
List<JoinColumn> |
getJoinColumn()
Gets the value of the joinColumn property.
|
JoinTable |
getJoinTable()
Gets the value of the joinTable property.
|
String |
getName()
Gets the value of the name property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setForeignKey(ForeignKey value)
Sets the value of the foreignKey property.
|
void |
setJoinTable(JoinTable value)
Sets the value of the joinTable property.
|
void |
setName(String value)
Sets the value of the name property.
|
protected String description
protected List<JoinColumn> joinColumn
protected ForeignKey foreignKey
protected JoinTable joinTable
protected String name
public String getDescription()
Gets the value of the description property.
Stringpublic void setDescription(String value)
Sets the value of the description property.
value - allowed object is
Stringpublic List<JoinColumn> getJoinColumn()
Gets the value of the joinColumn property.
<p> 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 <CODE>set</CODE> method for the joinColumn property.
<p> For example, to add a new item, do as follows: <pre> getJoinColumn().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
JoinColumn
public ForeignKey getForeignKey()
Gets the value of the foreignKey property.
ForeignKeypublic void setForeignKey(ForeignKey value)
Sets the value of the foreignKey property.
value - allowed object is
ForeignKeypublic JoinTable getJoinTable()
Gets the value of the joinTable property.
JoinTablepublic void setJoinTable(JoinTable value)
Sets the value of the joinTable property.
value - allowed object is
JoinTablepublic String getName()
Gets the value of the name property.
StringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.