Class JaxbUniqueConstraintImpl
java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbUniqueConstraintImpl
- All Implemented Interfaces:
Serializable
@Target({}) @Retention(RUNTIME)
public @interface UniqueConstraint {
String name() default "";
String[] columnNames();
String options() default "";
}
<p>Java class for unique-constraint complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<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" />
<attribute name="options" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
}</pre>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the columnName property.getName()Gets the value of the name property.Gets the value of the options property.voidSets the value of the name property.voidsetOptions(String value) Sets the value of the options property.
-
Field Details
-
columnName
-
name
-
options
-
-
Constructor Details
-
JaxbUniqueConstraintImpl
public JaxbUniqueConstraintImpl()
-
-
Method Details
-
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 Jakarta XML Binding object. This is why there is not a
setmethod 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 list
String- Returns:
- The value of the columnName property.
-
getName
-
setName
-
getOptions
-
setOptions
-