Package org.apache.openejb.jee.jpa
Class AssociationOverride
- java.lang.Object
-
- org.apache.openejb.jee.jpa.AssociationOverride
-
public class AssociationOverride extends Object
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> <element name="join-column" type="{http://java.sun.com/xml/ns/persistence/orm}join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="join-table" type="{http://java.sun.com/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
Fields Modifier and Type Field Description protected Stringdescriptionprotected List<JoinColumn>joinColumnprotected JoinTablejoinTableprotected Stringname
-
Constructor Summary
Constructors Constructor Description AssociationOverride()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Gets the value of the description property.List<JoinColumn>getJoinColumn()Gets the value of the joinColumn property.JoinTablegetJoinTable()Gets the value of the joinTable property.StringgetName()Gets the value of the name property.voidsetDescription(String value)Sets the value of the description property.voidsetJoinTable(JoinTable value)Sets the value of the joinTable property.voidsetName(String value)Sets the value of the name property.
-
-
-
Field Detail
-
description
protected String description
-
joinColumn
protected List<JoinColumn> joinColumn
-
joinTable
protected JoinTable joinTable
-
name
protected String name
-
-
Method Detail
-
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 isString
-
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
-
getJoinTable
public JoinTable getJoinTable()
Gets the value of the joinTable property.- Returns:
- possible object is
JoinTable
-
setJoinTable
public void setJoinTable(JoinTable value)
Sets the value of the joinTable property.- Parameters:
value- allowed object isJoinTable
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
-