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 javax.xml.bind.annotation.XmlAccessType; 012import javax.xml.bind.annotation.XmlAccessorType; 013import javax.xml.bind.annotation.XmlAttribute; 014import javax.xml.bind.annotation.XmlType; 015 016 017/** 018 * 019 * 020 * @Target({}) @Retention(RUNTIME) 021 * public @interface ForeignKey { 022 * String name() default ""; 023 * ConstraintMode value() default CONSTRAINT; 024 * String foreign-key-definition() default ""; 025 * 026 * Note that the elements that embed the use of the annotation 027 * default this use as @ForeignKey(PROVIDER_DEFAULT). 028 * 029 * } 030 * 031 * 032 * 033 * <p>Java class for foreign-key complex type. 034 * 035 * <p>The following schema fragment specifies the expected content contained within this class. 036 * 037 * <pre> 038 * <complexType name="foreign-key"> 039 * <complexContent> 040 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 041 * <sequence> 042 * <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 043 * </sequence> 044 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> 045 * <attribute name="constraint-mode" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}constraint-mode" /> 046 * <attribute name="foreign-key-definition" type="{http://www.w3.org/2001/XMLSchema}string" /> 047 * </restriction> 048 * </complexContent> 049 * </complexType> 050 * </pre> 051 * 052 * 053 */ 054@XmlAccessorType(XmlAccessType.FIELD) 055@XmlType(name = "foreign-key", propOrder = { 056 "description" 057}) 058public class ForeignKey { 059 060 protected String description; 061 @XmlAttribute(name = "name") 062 protected String name; 063 @XmlAttribute(name = "constraint-mode") 064 protected ConstraintMode constraintMode; 065 @XmlAttribute(name = "foreign-key-definition") 066 protected String foreignKeyDefinition; 067 068 /** 069 * Gets the value of the description property. 070 * 071 * @return 072 * possible object is 073 * {@link String } 074 * 075 */ 076 public String getDescription() { 077 return description; 078 } 079 080 /** 081 * Sets the value of the description property. 082 * 083 * @param value 084 * allowed object is 085 * {@link String } 086 * 087 */ 088 public void setDescription(String value) { 089 this.description = value; 090 } 091 092 /** 093 * Gets the value of the name property. 094 * 095 * @return 096 * possible object is 097 * {@link String } 098 * 099 */ 100 public String getName() { 101 return name; 102 } 103 104 /** 105 * Sets the value of the name property. 106 * 107 * @param value 108 * allowed object is 109 * {@link String } 110 * 111 */ 112 public void setName(String value) { 113 this.name = value; 114 } 115 116 /** 117 * Gets the value of the constraintMode property. 118 * 119 * @return 120 * possible object is 121 * {@link ConstraintMode } 122 * 123 */ 124 public ConstraintMode getConstraintMode() { 125 return constraintMode; 126 } 127 128 /** 129 * Sets the value of the constraintMode property. 130 * 131 * @param value 132 * allowed object is 133 * {@link ConstraintMode } 134 * 135 */ 136 public void setConstraintMode(ConstraintMode value) { 137 this.constraintMode = value; 138 } 139 140 /** 141 * Gets the value of the foreignKeyDefinition property. 142 * 143 * @return 144 * possible object is 145 * {@link String } 146 * 147 */ 148 public String getForeignKeyDefinition() { 149 return foreignKeyDefinition; 150 } 151 152 /** 153 * Sets the value of the foreignKeyDefinition property. 154 * 155 * @param value 156 * allowed object is 157 * {@link String } 158 * 159 */ 160 public void setForeignKeyDefinition(String value) { 161 this.foreignKeyDefinition = value; 162 } 163 164}