Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping.spi

public Class JaxbUniqueConstraint

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:unique-constraint
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
propOrder:columnName
Imports
java.io.Serializable, java.util.ArrayList, .List, javax.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlType

@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

Modifier and TypeField and Description
protected List<String>
protected String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<String>
getColumnName()

Gets the value of the columnName property.

public String

Returns:

possible object is String
getName
()

Gets the value of the name property.

public void
setName(String
allowed object is String
value
)

Sets the value of the name property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnNameback to summary
protected List<String> columnName
Annotations
@XmlElement
name:column-name
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
required:true
nameback to summary
protected String name
Annotations
@XmlAttribute
name:name

Constructor Detail

JaxbUniqueConstraintback to summary
public JaxbUniqueConstraint()

Method Detail

getColumnNameback to summary
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 a set method 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

getNameback to summary
public String getName()

Gets the value of the name property.

Returns:String

possible object is String

setNameback to summary
public void setName(String value)

Sets the value of the name property.

Parameters
value:String

allowed object is String