org.hibernate.internal.jaxb.cfg.JaxbHibernateConfiguration Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-520
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.01.06 at 12:10:24 PM PST
//
package org.hibernate.internal.jaxb.cfg;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="session-factory">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="property" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </element>
* <element name="mapping" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="class" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="jar" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="package" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="class-cache">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="include" default="all">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="all"/>
* <enumeration value="non-lazy"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="region" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="usage" use="required" type="{http://www.hibernate.org/xsd/hibernate-configuration}usage-attribute" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="collection-cache">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="collection" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="region" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="usage" use="required" type="{http://www.hibernate.org/xsd/hibernate-configuration}usage-attribute" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </choice>
* <element name="event" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="listener" type="{http://www.hibernate.org/xsd/hibernate-configuration}listener-element" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="type" use="required" type="{http://www.hibernate.org/xsd/hibernate-configuration}type-attribute" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="listener" type="{http://www.hibernate.org/xsd/hibernate-configuration}listener-element" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="security" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="grant" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="actions" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="entity-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="role" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="context" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sessionFactory",
"security"
})
@XmlRootElement(name = "hibernate-configuration")
public class JaxbHibernateConfiguration {
@XmlElement(name = "session-factory", required = true)
protected JaxbHibernateConfiguration.JaxbSessionFactory sessionFactory;
protected JaxbHibernateConfiguration.JaxbSecurity security;
/**
* Gets the value of the sessionFactory property.
*
* @return
* possible object is
* {@link JaxbHibernateConfiguration.JaxbSessionFactory }
*
*/
public JaxbHibernateConfiguration.JaxbSessionFactory getSessionFactory() {
return sessionFactory;
}
/**
* Sets the value of the sessionFactory property.
*
* @param value
* allowed object is
* {@link JaxbHibernateConfiguration.JaxbSessionFactory }
*
*/
public void setSessionFactory(JaxbHibernateConfiguration.JaxbSessionFactory value) {
this.sessionFactory = value;
}
/**
* Gets the value of the security property.
*
* @return
* possible object is
* {@link JaxbHibernateConfiguration.JaxbSecurity }
*
*/
public JaxbHibernateConfiguration.JaxbSecurity getSecurity() {
return security;
}
/**
* Sets the value of the security property.
*
* @param value
* allowed object is
* {@link JaxbHibernateConfiguration.JaxbSecurity }
*
*/
public void setSecurity(JaxbHibernateConfiguration.JaxbSecurity value) {
this.security = value;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="grant" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="actions" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="entity-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="role" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="context" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"grant"
})
public static class JaxbSecurity {
protected List grant;
@XmlAttribute(required = true)
protected String context;
/**
* Gets the value of the grant 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 grant property.
*
*
* For example, to add a new item, do as follows:
*
* getGrant().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JaxbHibernateConfiguration.JaxbSecurity.JaxbGrant }
*
*
*/
public List getGrant() {
if (grant == null) {
grant = new ArrayList();
}
return this.grant;
}
/**
* Gets the value of the context property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContext() {
return context;
}
/**
* Sets the value of the context property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContext(String value) {
this.context = value;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="actions" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="entity-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="role" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class JaxbGrant {
@XmlAttribute(required = true)
protected String actions;
@XmlAttribute(name = "entity-name", required = true)
protected String entityName;
@XmlAttribute(required = true)
protected String role;
/**
* Gets the value of the actions property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getActions() {
return actions;
}
/**
* Sets the value of the actions property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setActions(String value) {
this.actions = value;
}
/**
* Gets the value of the entityName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEntityName() {
return entityName;
}
/**
* Sets the value of the entityName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEntityName(String value) {
this.entityName = value;
}
/**
* Gets the value of the role property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRole() {
return role;
}
/**
* Sets the value of the role property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRole(String value) {
this.role = value;
}
}
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="property" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </simpleContent>
* </complexType>
* </element>
* <element name="mapping" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="class" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="jar" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="package" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="class-cache">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="include" default="all">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="all"/>
* <enumeration value="non-lazy"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="region" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="usage" use="required" type="{http://www.hibernate.org/xsd/hibernate-configuration}usage-attribute" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="collection-cache">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="collection" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="region" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="usage" use="required" type="{http://www.hibernate.org/xsd/hibernate-configuration}usage-attribute" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </choice>
* <element name="event" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="listener" type="{http://www.hibernate.org/xsd/hibernate-configuration}listener-element" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="type" use="required" type="{http://www.hibernate.org/xsd/hibernate-configuration}type-attribute" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="listener" type="{http://www.hibernate.org/xsd/hibernate-configuration}listener-element" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"property",
"mapping",
"classCacheOrCollectionCache",
"event",
"listener"
})
public static class JaxbSessionFactory {
protected List property;
protected List mapping;
@XmlElements({
@XmlElement(name = "collection-cache", type = JaxbHibernateConfiguration.JaxbSessionFactory.JaxbCollectionCache.class),
@XmlElement(name = "class-cache", type = JaxbHibernateConfiguration.JaxbSessionFactory.JaxbClassCache.class)
})
protected List