Package org.apache.openejb.jee.jpa
Class UniqueConstraint
- java.lang.Object
-
- org.apache.openejb.jee.jpa.UniqueConstraint
-
public class UniqueConstraint extends Object
Target({}) @Retention(RUNTIME) public @interface UniqueConstraint { String name() default ""; String[] columnNames(); }Java class for unique-constraint complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="unique-constraint"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="column-name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> </sequence> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>columnNameprotected Stringname
-
Constructor Summary
Constructors Constructor Description UniqueConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getColumnName()Gets the value of the columnName property.StringgetName()Gets the value of the name property.voidsetName(String value)Sets the value of the name property.
-
-
-
Method Detail
-
getColumnName
public List<String> getColumnName()
Gets the value of the columnName 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 columnName property. For example, to add a new item, do as follows:getColumnName().add(newItem);Objects of the following type(s) are allowed in the listString
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
-