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({METHOD, FIELD}) @Retention(RUNTIME) 024 * public @interface EmbeddedId {} 025 * 026 * 027 * 028 * <p>Java class for embedded-id complex type. 029 * 030 * <p>The following schema fragment specifies the expected content contained within this class. 031 * 032 * <pre> 033 * <complexType name="embedded-id"> 034 * <complexContent> 035 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 036 * <sequence> 037 * <element name="attribute-override" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}attribute-override" maxOccurs="unbounded" minOccurs="0"/> 038 * </sequence> 039 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 040 * <attribute name="access" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}access-type" /> 041 * </restriction> 042 * </complexContent> 043 * </complexType> 044 * </pre> 045 * 046 * 047 */ 048@XmlAccessorType(XmlAccessType.FIELD) 049@XmlType(name = "embedded-id", propOrder = { 050 "attributeOverride" 051}) 052public class EmbeddedId { 053 054 @XmlElement(name = "attribute-override") 055 protected List<AttributeOverride> attributeOverride; 056 @XmlAttribute(name = "name", required = true) 057 protected String name; 058 @XmlAttribute(name = "access") 059 protected AccessType access; 060 061 /** 062 * Gets the value of the attributeOverride 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 attributeOverride property. 069 * 070 * <p> 071 * For example, to add a new item, do as follows: 072 * <pre> 073 * getAttributeOverride().add(newItem); 074 * </pre> 075 * 076 * 077 * <p> 078 * Objects of the following type(s) are allowed in the list 079 * {@link AttributeOverride } 080 * 081 * 082 */ 083 public List<AttributeOverride> getAttributeOverride() { 084 if (attributeOverride == null) { 085 attributeOverride = new ArrayList<AttributeOverride>(); 086 } 087 return this.attributeOverride; 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 /** 115 * Gets the value of the access property. 116 * 117 * @return 118 * possible object is 119 * {@link AccessType } 120 * 121 */ 122 public AccessType getAccess() { 123 return access; 124 } 125 126 /** 127 * Sets the value of the access property. 128 * 129 * @param value 130 * allowed object is 131 * {@link AccessType } 132 * 133 */ 134 public void setAccess(AccessType value) { 135 this.access = value; 136 } 137 138}