001// 002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 003// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 004// Any modifications to this file will be lost upon recompilation of the source schema. 005// Generated on: 2018.12.10 at 03:02:30 PM PST 006// 007 008 009package org.microbean.jpa.jaxb; 010 011import java.util.ArrayList; 012import java.util.List; 013import javax.xml.bind.annotation.XmlAccessType; 014import javax.xml.bind.annotation.XmlAccessorType; 015import javax.xml.bind.annotation.XmlAttribute; 016import javax.xml.bind.annotation.XmlElement; 017import javax.xml.bind.annotation.XmlType; 018 019 020/** 021 * 022 * 023 * @Target({}) @Retention(RUNTIME) 024 * public @interface UniqueConstraint { 025 * String name() default ""; 026 * String[] columnNames(); 027 * } 028 * 029 * 030 * 031 * <p>Java class for unique-constraint complex type. 032 * 033 * <p>The following schema fragment specifies the expected content contained within this class. 034 * 035 * <pre> 036 * <complexType name="unique-constraint"> 037 * <complexContent> 038 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 039 * <sequence> 040 * <element name="column-name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> 041 * </sequence> 042 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> 043 * </restriction> 044 * </complexContent> 045 * </complexType> 046 * </pre> 047 * 048 * 049 */ 050@XmlAccessorType(XmlAccessType.FIELD) 051@XmlType(name = "unique-constraint", propOrder = { 052 "columnName" 053}) 054public class UniqueConstraint { 055 056 @XmlElement(name = "column-name", required = true) 057 protected List<String> columnName; 058 @XmlAttribute(name = "name") 059 protected String name; 060 061 /** 062 * Gets the value of the columnName property. 063 * 064 * <p> 065 * This accessor method returns a reference to the live list, 066 * not a snapshot. Therefore any modification you make to the 067 * returned list will be present inside the JAXB object. 068 * This is why there is not a <CODE>set</CODE> method for the columnName property. 069 * 070 * <p> 071 * For example, to add a new item, do as follows: 072 * <pre> 073 * getColumnName().add(newItem); 074 * </pre> 075 * 076 * 077 * <p> 078 * Objects of the following type(s) are allowed in the list 079 * {@link String } 080 * 081 * 082 */ 083 public List<String> getColumnName() { 084 if (columnName == null) { 085 columnName = new ArrayList<String>(); 086 } 087 return this.columnName; 088 } 089 090 /** 091 * Gets the value of the name property. 092 * 093 * @return 094 * possible object is 095 * {@link String } 096 * 097 */ 098 public String getName() { 099 return name; 100 } 101 102 /** 103 * Sets the value of the name property. 104 * 105 * @param value 106 * allowed object is 107 * {@link String } 108 * 109 */ 110 public void setName(String value) { 111 this.name = value; 112 } 113 114}