-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
692 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,231 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<xsd:schema xmlns="http://www.resthub.org/schema/context" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tool="http://www.springframework.org/schema/tool" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
targetNamespace="http://www.resthub.org/schema/context" | ||
elementFormDefault="qualified" attributeFormDefault="unqualified"> | ||
|
||
<xsd:import namespace="http://www.springframework.org/schema/tool" /> | ||
<xsd:import namespace="http://www.springframework.org/schema/context" | ||
schemaLocation="http://www.springframework.org/schema/context/spring-context.xsd" /> | ||
|
||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Defines the configuration elements for the Resthub Framework's persistence unit | ||
context support. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
|
||
<xsd:element name="include-entities"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Scans the classpath for annotated persistence entities that will be included in a shared context. | ||
By default, the JPA-provided @MappedSuperclass and @Entity stereotypes will be detected. | ||
This component is widely base on Spring component-scan element. All options available here (but persistenceUnitName) | ||
are those defined by Spring. Please report Spring context xsd documentation for information about these options. | ||
Some original options are not repeated here because of their useless in a persistence context implementation. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="include-filter" type="context:filterType" | ||
minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Controls which eligible types to include for persistence entities scanning. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
<xsd:element name="exclude-filter" type="context:filterType" | ||
minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Controls which eligible types to exclude for persistence entities scanning. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
</xsd:sequence> | ||
<xsd:attribute name="base-package" type="xsd:string" | ||
use="required"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
The comma-separated list of packages to scan for annotated persistence entities. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
<xsd:attribute name="persistence-unit-name" type="xsd:string"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Specifies the persistence unit name in which entities should be included. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
<xsd:attribute name="use-default-filters" type="xsd:boolean" | ||
default="true"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Indicates whether automatic detection of classes annotated with @MappedSuperclass | ||
or @Entity should be enabled. Default is "true". | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
</xsd:complexType> | ||
</xsd:element> | ||
|
||
<xsd:element name="exclude-entities"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Scans the classpath for annotated persistence entities that will be excluded from the shared context. | ||
By default, the JPA-provided @MappedSuperclass and @Entity stereotypes will be detected. | ||
This component is widely base on Spring component-scan element. All options available here (but persistenceUnitName) | ||
are those defined by Spring. Please report Spring context xsd documentation for information about these options. | ||
Some original options are not repeated here because of their useless in a persistence context implementation. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="include-filter" type="context:filterType" | ||
minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Controls which eligible types to include for persistence entities scanning. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
<xsd:element name="exclude-filter" type="context:filterType" | ||
minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Controls which eligible types to exclude for persistence entities scanning. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
</xsd:sequence> | ||
<xsd:attribute name="base-package" type="xsd:string" | ||
use="required"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
The comma-separated list of packages to scan for annotated persistence entities. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
<xsd:attribute name="persistence-unit-name" type="xsd:string"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Specifies the persistence unit name in which entities should be included. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
<xsd:attribute name="use-default-filters" type="xsd:boolean" | ||
default="true"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Indicates whether automatic detection of classes annotated with @MappedSuperclass | ||
or @Entity should be enabled. Default is "true". | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
</xsd:complexType> | ||
</xsd:element> | ||
|
||
<xsd:element name="include-jaxb-elements"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Scans the classpath for annotated jaxb elementsthat will be included in a shared context. | ||
By default, the @XmlRootElement stereotype will be detected. | ||
This component is widely base on Spring component-scan element. All options available here | ||
are those defined by Spring. Please report Spring context xsd documentation for information about these options. | ||
Some original options are not repeated here because of their useless in a persistence context implementation. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="include-filter" type="context:filterType" | ||
minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Controls which eligible types to include for jaxb elements scanning. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
<xsd:element name="exclude-filter" type="context:filterType" | ||
minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Controls which eligible types to exclude for jaxb elements scanning. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
</xsd:sequence> | ||
<xsd:attribute name="base-package" type="xsd:string" | ||
use="required"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
The comma-separated list of packages to scan for annotated jaxb elements. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
<xsd:attribute name="use-default-filters" type="xsd:boolean" | ||
default="true"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Indicates whether automatic detection of classes annotated with @XmlRootElement should be enabled. Default is "true". | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
</xsd:complexType> | ||
</xsd:element> | ||
|
||
<xsd:element name="exclude-jaxb-elements"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Scans the classpath for annotated jaxb elements that will be excluded from the shared context. | ||
By default, the @XmlRootElement stereotype will be detected. | ||
This component is widely base on Spring component-scan element. All options available here | ||
are those defined by Spring. Please report Spring context xsd documentation for information about these options. | ||
Some original options are not repeated here because of their useless in a persistence context implementation. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="include-filter" type="context:filterType" | ||
minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Controls which eligible types to include for persistence entities scanning. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
<xsd:element name="exclude-filter" type="context:filterType" | ||
minOccurs="0" maxOccurs="unbounded"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Controls which eligible types to exclude for persistence entities scanning. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
</xsd:sequence> | ||
<xsd:attribute name="base-package" type="xsd:string" | ||
use="required"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
The comma-separated list of packages to scan for annotated persistence entities. | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
<xsd:attribute name="use-default-filters" type="xsd:boolean" | ||
default="true"> | ||
<xsd:annotation> | ||
<xsd:documentation><![CDATA[ | ||
Indicates whether automatic detection of classes annotated with @XmlRootElement should be enabled. Default is "true". | ||
]]></xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:attribute> | ||
</xsd:complexType> | ||
</xsd:element> | ||
|
||
</xsd:schema> |
Oops, something went wrong.