Package org.apache.openejb.jee.jpa
Class JoinTable
- java.lang.Object
-
- org.apache.openejb.jee.jpa.JoinTable
-
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 {}; }Java class for join-table complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="join-table"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="join-column" type="{http://java.sun.com/xml/ns/persistence/orm}join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="inverse-join-column" type="{http://java.sun.com/xml/ns/persistence/orm}join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="unique-constraint" type="{http://java.sun.com/xml/ns/persistence/orm}unique-constraint" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringcatalogprotected List<JoinColumn>inverseJoinColumnprotected List<JoinColumn>joinColumnprotected Stringnameprotected Stringschemaprotected List<UniqueConstraint>uniqueConstraint
-
Constructor Summary
Constructors Constructor Description JoinTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCatalog()Gets the value of the catalog property.List<JoinColumn>getInverseJoinColumn()Gets the value of the inverseJoinColumn property.List<JoinColumn>getJoinColumn()Gets the value of the joinColumn property.StringgetName()Gets the value of the name property.StringgetSchema()Gets the value of the schema property.List<UniqueConstraint>getUniqueConstraint()Gets the value of the uniqueConstraint property.voidsetCatalog(String value)Sets the value of the catalog property.voidsetName(String value)Sets the value of the name property.voidsetSchema(String value)Sets the value of the schema property.
-
-
-
Field Detail
-
joinColumn
protected List<JoinColumn> joinColumn
-
inverseJoinColumn
protected List<JoinColumn> inverseJoinColumn
-
uniqueConstraint
protected List<UniqueConstraint> uniqueConstraint
-
catalog
protected String catalog
-
name
protected String name
-
schema
protected String schema
-
-
Method Detail
-
getJoinColumn
public List<JoinColumn> 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 asetmethod 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 listJoinColumn
-
getInverseJoinColumn
public List<JoinColumn> getInverseJoinColumn()
Gets the value of the inverseJoinColumn 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 asetmethod for the inverseJoinColumn property. For example, to add a new item, do as follows:getInverseJoinColumn().add(newItem);Objects of the following type(s) are allowed in the listJoinColumn
-
getUniqueConstraint
public List<UniqueConstraint> getUniqueConstraint()
Gets the value of the uniqueConstraint 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 asetmethod for the uniqueConstraint property. For example, to add a new item, do as follows:getUniqueConstraint().add(newItem);Objects of the following type(s) are allowed in the listUniqueConstraint
-
getCatalog
public String getCatalog()
Gets the value of the catalog property.- Returns:
- possible object is
String
-
setCatalog
public void setCatalog(String value)
Sets the value of the catalog property.- Parameters:
value- allowed object isString
-
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 isString
-
getSchema
public String getSchema()
Gets the value of the schema property.- Returns:
- possible object is
String
-
-