001package io.ebeaninternal.xmlmapping.model; 002 003import javax.xml.bind.annotation.XmlAccessType; 004import javax.xml.bind.annotation.XmlAccessorType; 005import javax.xml.bind.annotation.XmlAttribute; 006import javax.xml.bind.annotation.XmlElement; 007import javax.xml.bind.annotation.XmlRootElement; 008import javax.xml.bind.annotation.XmlType; 009 010 011/** 012 * <p>Java class for anonymous complex type. 013 * <p> 014 * <p>The following schema fragment specifies the expected content contained within this class. 015 * <p> 016 * <pre> 017 * <complexType> 018 * <complexContent> 019 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 020 * <sequence> 021 * <element ref="{http://ebean-orm.github.io/xml/ns/ebean}query"/> 022 * </sequence> 023 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 024 * </restriction> 025 * </complexContent> 026 * </complexType> 027 * </pre> 028 */ 029@XmlAccessorType(XmlAccessType.FIELD) 030@XmlType(name = "", propOrder = { 031 "query" 032}) 033@XmlRootElement(name = "named-query") 034public class XmNamedQuery { 035 036 @XmlElement(required = true) 037 protected XmQuery query; 038 @XmlAttribute(name = "name", required = true) 039 protected String name; 040 041 /** 042 * Gets the value of the query property. 043 * 044 * @return possible object is 045 * {@link XmQuery } 046 */ 047 public XmQuery getQuery() { 048 return query; 049 } 050 051 /** 052 * Sets the value of the query property. 053 * 054 * @param value allowed object is 055 * {@link XmQuery } 056 */ 057 public void setQuery(XmQuery value) { 058 this.query = value; 059 } 060 061 /** 062 * Gets the value of the name property. 063 * 064 * @return possible object is 065 * {@link String } 066 */ 067 public String getName() { 068 return name; 069 } 070 071 /** 072 * Sets the value of the name property. 073 * 074 * @param value allowed object is 075 * {@link String } 076 */ 077 public void setName(String value) { 078 this.name = value; 079 } 080 081}