public class JoinTable extends Object
@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface JoinTable { String name() default ""; String catalog() default ""; String schema() default ""; JoinColumn[] joinColumns() default {}; JoinColumn[] inverseJoinColumns() default {}; UniqueConstraint[] uniqueConstraints() default {}; Index[] indexes() default {}; }
<p>Java class for join-table complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="join-table"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <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> <sequence> <element name="inverse-join-column" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="inverse-foreign-key" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}foreign-key" minOccurs="0"/> </sequence> <element name="unique-constraint" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}unique-constraint" maxOccurs="unbounded" minOccurs="0"/> <element name="index" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}index" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
catalog |
protected ForeignKey |
foreignKey |
protected List<Index> |
index |
protected ForeignKey |
inverseForeignKey |
protected List<JoinColumn> |
inverseJoinColumn |
protected List<JoinColumn> |
joinColumn |
protected String |
name |
protected String |
schema |
protected List<UniqueConstraint> |
uniqueConstraint |
| Constructor and Description |
|---|
JoinTable() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalog()
Gets the value of the catalog property.
|
ForeignKey |
getForeignKey()
Gets the value of the foreignKey property.
|
List<Index> |
getIndex()
Gets the value of the index property.
|
ForeignKey |
getInverseForeignKey()
Gets the value of the inverseForeignKey property.
|
List<JoinColumn> |
getInverseJoinColumn()
Gets the value of the inverseJoinColumn property.
|
List<JoinColumn> |
getJoinColumn()
Gets the value of the joinColumn property.
|
String |
getName()
Gets the value of the name property.
|
String |
getSchema()
Gets the value of the schema property.
|
List<UniqueConstraint> |
getUniqueConstraint()
Gets the value of the uniqueConstraint property.
|
void |
setCatalog(String value)
Sets the value of the catalog property.
|
void |
setForeignKey(ForeignKey value)
Sets the value of the foreignKey property.
|
void |
setInverseForeignKey(ForeignKey value)
Sets the value of the inverseForeignKey property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setSchema(String value)
Sets the value of the schema property.
|
protected List<JoinColumn> joinColumn
protected ForeignKey foreignKey
protected List<JoinColumn> inverseJoinColumn
protected ForeignKey inverseForeignKey
protected List<UniqueConstraint> uniqueConstraint
protected String name
protected String catalog
protected String schema
public 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 List<JoinColumn> getInverseJoinColumn()
Gets the value of the inverseJoinColumn 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 inverseJoinColumn property.
<p> For example, to add a new item, do as follows: <pre> getInverseJoinColumn().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
JoinColumn
public ForeignKey getInverseForeignKey()
Gets the value of the inverseForeignKey property.
ForeignKeypublic void setInverseForeignKey(ForeignKey value)
Sets the value of the inverseForeignKey property.
value - allowed object is
ForeignKeypublic List<UniqueConstraint> getUniqueConstraint()
Gets the value of the uniqueConstraint 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 uniqueConstraint property.
<p> For example, to add a new item, do as follows: <pre> getUniqueConstraint().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
UniqueConstraint
public List<Index> getIndex()
Gets the value of the index 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 index property.
<p> For example, to add a new item, do as follows: <pre> getIndex().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
Index
public String getName()
Gets the value of the name property.
Stringpublic void setName(String value)
Sets the value of the name property.
value - allowed object is
Stringpublic String getCatalog()
Gets the value of the catalog property.
Stringpublic void setCatalog(String value)
Sets the value of the catalog property.
value - allowed object is
Stringpublic String getSchema()
Gets the value of the schema property.
StringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.