org.hibernate.boot.jaxb.cfg.spi.JaxbCfgHibernateConfiguration Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.09.30 at 05:39:16 PM UTC
//
package org.hibernate.boot.jaxb.cfg.spi;
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;
/**
* 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" type="{http://www.hibernate.org/xsd/orm/cfg}ConfigPropertyType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="mapping" type="{http://www.hibernate.org/xsd/orm/cfg}MappingReferenceType" maxOccurs="unbounded" minOccurs="0"/>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="class-cache" type="{http://www.hibernate.org/xsd/orm/cfg}EntityCacheType"/>
* <element name="collection-cache" type="{http://www.hibernate.org/xsd/orm/cfg}CollectionCacheType"/>
* </choice>
* <element name="event" type="{http://www.hibernate.org/xsd/orm/cfg}EventListenerGroupType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="listener" type="{http://www.hibernate.org/xsd/orm/cfg}EventListenerType" 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", namespace = "http://www.hibernate.org/xsd/orm/cfg")
public class JaxbCfgHibernateConfiguration {
@XmlElement(name = "session-factory", namespace = "http://www.hibernate.org/xsd/orm/cfg", required = true)
protected JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory sessionFactory;
@XmlElement(namespace = "http://www.hibernate.org/xsd/orm/cfg")
protected JaxbCfgHibernateConfiguration.JaxbCfgSecurity security;
/**
* Gets the value of the sessionFactory property.
*
* @return
* possible object is
* {@link JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory }
*
*/
public JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory getSessionFactory() {
return sessionFactory;
}
/**
* Sets the value of the sessionFactory property.
*
* @param value
* allowed object is
* {@link JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory }
*
*/
public void setSessionFactory(JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory value) {
this.sessionFactory = value;
}
/**
* Gets the value of the security property.
*
* @return
* possible object is
* {@link JaxbCfgHibernateConfiguration.JaxbCfgSecurity }
*
*/
public JaxbCfgHibernateConfiguration.JaxbCfgSecurity getSecurity() {
return security;
}
/**
* Sets the value of the security property.
*
* @param value
* allowed object is
* {@link JaxbCfgHibernateConfiguration.JaxbCfgSecurity }
*
*/
public void setSecurity(JaxbCfgHibernateConfiguration.JaxbCfgSecurity 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 JaxbCfgSecurity {
@XmlElement(namespace = "http://www.hibernate.org/xsd/orm/cfg")
protected List grant;
@XmlAttribute(name = "context", 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 JaxbCfgHibernateConfiguration.JaxbCfgSecurity.JaxbCfgGrant }
*
*
*/
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 JaxbCfgGrant {
@XmlAttribute(name = "actions", required = true)
protected String actions;
@XmlAttribute(name = "entity-name", required = true)
protected String entityName;
@XmlAttribute(name = "role", 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" type="{http://www.hibernate.org/xsd/orm/cfg}ConfigPropertyType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="mapping" type="{http://www.hibernate.org/xsd/orm/cfg}MappingReferenceType" maxOccurs="unbounded" minOccurs="0"/>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="class-cache" type="{http://www.hibernate.org/xsd/orm/cfg}EntityCacheType"/>
* <element name="collection-cache" type="{http://www.hibernate.org/xsd/orm/cfg}CollectionCacheType"/>
* </choice>
* <element name="event" type="{http://www.hibernate.org/xsd/orm/cfg}EventListenerGroupType" maxOccurs="unbounded" minOccurs="0"/>
* <element name="listener" type="{http://www.hibernate.org/xsd/orm/cfg}EventListenerType" 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 JaxbCfgSessionFactory {
@XmlElement(namespace = "http://www.hibernate.org/xsd/orm/cfg")
protected List property;
@XmlElement(namespace = "http://www.hibernate.org/xsd/orm/cfg")
protected List mapping;
@XmlElements({
@XmlElement(name = "class-cache", namespace = "http://www.hibernate.org/xsd/orm/cfg", type = JaxbCfgEntityCacheType.class),
@XmlElement(name = "collection-cache", namespace = "http://www.hibernate.org/xsd/orm/cfg", type = JaxbCfgCollectionCacheType.class)
})
protected List