Browse files

Adding tricky bug story

  • Loading branch information...
0 parents commit e44e2e12c9af0ff08aeaac8204279ee8e14368d3 @ayende committed Oct 24, 2009
11 .gitignore
@@ -0,0 +1,11 @@
+*resharper.user
+[Dd]ebug/
+[Rr]elease/
+build/
+[Bb]in/
+[Oo]bj/
+*.suo
+*.sln.cache
+_ReSharper.*/
+AssemblyInfo.cs
+*.user
BIN TrickyBug/SharedLibs/Antlr3.Runtime.dll
Binary file not shown.
BIN TrickyBug/SharedLibs/Castle.Core.dll
Binary file not shown.
3,197 TrickyBug/SharedLibs/Castle.Core.xml
3,197 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
13 TrickyBug/SharedLibs/Castle.DynamicProxy.license.txt
@@ -0,0 +1,13 @@
+Copyright 2004-2005 Castle Project - http://www.castleproject.org/
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
BIN TrickyBug/SharedLibs/Castle.DynamicProxy2.dll
Binary file not shown.
1,249 TrickyBug/SharedLibs/Castle.DynamicProxy2.xml
1,249 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
BIN TrickyBug/SharedLibs/Iesi.Collections.dll
Binary file not shown.
1,903 TrickyBug/SharedLibs/Iesi.Collections.xml
1,903 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
BIN TrickyBug/SharedLibs/NHibernate.ByteCode.Castle.dll
Binary file not shown.
40 TrickyBug/SharedLibs/NHibernate.ByteCode.Castle.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<doc>
+ <assembly>
+ <name>NHibernate.ByteCode.Castle</name>
+ </assembly>
+ <members>
+ <member name="T:NHibernate.ByteCode.Castle.LazyInitializer">
+ <summary>
+ A <see cref="T:NHibernate.Proxy.ILazyInitializer"/> for use with the Castle Dynamic Class Generator.
+ </summary>
+ </member>
+ <member name="M:NHibernate.ByteCode.Castle.LazyInitializer.#ctor(System.String,System.Type,System.Object,System.Reflection.MethodInfo,System.Reflection.MethodInfo,NHibernate.Type.IAbstractComponentType,NHibernate.Engine.ISessionImplementor)">
+ <summary>
+ Initializes a new <see cref="T:NHibernate.ByteCode.Castle.LazyInitializer"/> object.
+ </summary>
+ <param name="entityName"></param>
+ <param name="persistentClass">The Class to Proxy.</param>
+ <param name="id">The Id of the Object we are Proxying.</param>
+ <param name="getIdentifierMethod"></param>
+ <param name="setIdentifierMethod"></param>
+ <param name="componentIdType"></param>
+ <param name="session">The ISession this Proxy is in.</param>
+ </member>
+ <member name="M:NHibernate.ByteCode.Castle.LazyInitializer.Intercept(Castle.Core.Interceptor.IInvocation)">
+ <summary>
+ Invoke the actual Property/Method using the Proxy or instantiate the actual
+ object and use it when the Proxy can't handle the method.
+ </summary>
+ <param name="invocation">The <see cref="T:Castle.Core.Interceptor.IInvocation"/> from the generated Castle.DynamicProxy.</param>
+ </member>
+ <member name="M:NHibernate.ByteCode.Castle.ProxyFactory.GetProxy(System.Object,NHibernate.Engine.ISessionImplementor)">
+ <summary>
+ Build a proxy using the Castle.DynamicProxy library.
+ </summary>
+ <param name="id">The value for the Id.</param>
+ <param name="session">The Session the proxy is in.</param>
+ <returns>A fully built <c>INHibernateProxy</c>.</returns>
+ </member>
+ </members>
+</doc>
BIN TrickyBug/SharedLibs/NHibernate.dll
Binary file not shown.
40,436 TrickyBug/SharedLibs/NHibernate.xml
40,436 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
BIN TrickyBug/SharedLibs/log4net.dll
Binary file not shown.
201 TrickyBug/SharedLibs/log4net.license.txt
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
28,655 TrickyBug/SharedLibs/log4net.xml
28,655 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
215 TrickyBug/SharedLibs/nhibernate-configuration.xsd
@@ -0,0 +1,215 @@
+<xs:schema targetNamespace="urn:nhibernate-configuration-2.2" xmlns="urn:nhibernate-configuration-2.2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:NS="urn:nhibernate-configuration-2.2">
+ <xs:annotation>
+ <xs:documentation>
+ -- This schema was automatically generated by Syntext Dtd2Schema and changed for NH use --
+ -- conversion tool (from file: hibernate-configuration-3.0.dtd) --
+ -- Copyright (C) 2002, 2003 Syntext Inc. See http://www.syntext.com for updates. --
+ </xs:documentation>
+ </xs:annotation>
+ <!-- Type definitions -->
+ <xs:element name="hibernate-configuration">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="bytecode-provider" minOccurs="0" maxOccurs="1" />
+ <xs:element ref="reflection-optimizer" maxOccurs="1" minOccurs="0" />
+ <xs:element ref="session-factory" minOccurs="0" maxOccurs="1" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="class-cache">
+ <xs:complexType>
+ <xs:sequence>
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" use="required" />
+ <xs:attributeGroup ref="cacheSpecification" />
+ <xs:attribute name="include">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="all" />
+ <xs:enumeration value="non-lazy" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="collection-cache">
+ <xs:complexType>
+ <xs:sequence />
+ <xs:attribute name="collection" type="xs:string" use="required" />
+ <xs:attributeGroup ref="cacheSpecification" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="mapping">
+ <xs:annotation>
+ <xs:documentation>
+ There are 3 possible combinations of mapping attributes
+ 1 - resource &amp; assembly: NHibernate will read the mapping resource from the specified assembly
+ 2 - file only: NHibernate will read the mapping from the file.
+ 3 - assembly only: NHibernate will find all the resources ending in hbm.xml from the assembly.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attribute name="resource" />
+ <xs:attribute name="file" />
+ <xs:attribute name="assembly" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="property">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="name" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="connection.provider" />
+ <xs:enumeration value="connection.driver_class" />
+ <xs:enumeration value="connection.connection_string" />
+ <xs:enumeration value="connection.isolation" />
+ <xs:enumeration value="connection.release_mode" />
+ <xs:enumeration value="connection.connection_string_name" />
+ <xs:enumeration value="dialect" />
+ <xs:enumeration value="default_schema" />
+ <xs:enumeration value="show_sql" />
+ <xs:enumeration value="max_fetch_depth" />
+ <xs:enumeration value="current_session_context_class" />
+ <xs:enumeration value="transaction.factory_class" />
+ <xs:enumeration value="cache.provider_class" />
+ <xs:enumeration value="cache.use_query_cache" />
+ <xs:enumeration value="cache.query_cache_factory" />
+ <xs:enumeration value="cache.use_second_level_cache" />
+ <xs:enumeration value="cache.region_prefix" />
+ <xs:enumeration value="cache.use_minimal_puts" />
+ <xs:enumeration value="cache.default_expiration" />
+ <xs:enumeration value="query.substitutions" />
+ <xs:enumeration value="query.factory_class" />
+ <xs:enumeration value="query.imports" />
+ <xs:enumeration value="hbm2ddl.auto" />
+ <xs:enumeration value="hbm2ddl.keywords" />
+ <xs:enumeration value="sql_exception_converter" />
+ <xs:enumeration value="adonet.wrap_result_sets" />
+ <xs:enumeration value="prepare_sql" />
+ <xs:enumeration value="command_timeout" />
+ <xs:enumeration value="adonet.batch_size" />
+ <xs:enumeration value="use_proxy_validator" />
+ <xs:enumeration value="use_outer_join" />
+ <xs:enumeration value="xml.output_stylesheet" />
+ <xs:enumeration value="generate_statistics" />
+ <xs:enumeration value="query.startup_check" />
+ <xs:enumeration value="default_catalog" />
+ <xs:enumeration value="proxyfactory.factory_class" />
+ <xs:enumeration value="adonet.factory_class" />
+ <xs:enumeration value="default_batch_fetch_size" />
+ <xs:enumeration value="default_entity_mode" />
+ <xs:enumeration value="use_sql_comments" />
+ <xs:enumeration value="format_sql" />
+ <xs:enumeration value="collectiontype.factory_class" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="session-factory">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="property" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="mapping" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="class-cache" />
+ <xs:element ref="collection-cache" />
+ </xs:choice>
+ <xs:element ref="event" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="listener" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="name" use="optional" />
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="cacheSpecification">
+ <xs:attribute name="region" type="xs:string" use="optional" />
+ <xs:attribute name="usage" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="read-only" />
+ <xs:enumeration value="read-write" />
+ <xs:enumeration value="nonstrict-read-write" />
+ <xs:enumeration value="transactional" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="event">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="listener" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="type" type="listenerType" use="required" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="listener">
+ <xs:complexType>
+ <xs:sequence />
+ <xs:attribute name="class" type="xs:string" use="required" />
+ <xs:attribute name="type" type="listenerType" use="optional" />
+ </xs:complexType>
+ </xs:element>
+ <xs:simpleType name="listenerType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="auto-flush" />
+ <xs:enumeration value="merge" />
+ <xs:enumeration value="create" />
+ <xs:enumeration value="create-onflush" />
+ <xs:enumeration value="delete" />
+ <xs:enumeration value="dirty-check" />
+ <xs:enumeration value="evict" />
+ <xs:enumeration value="flush" />
+ <xs:enumeration value="flush-entity" />
+ <xs:enumeration value="load" />
+ <xs:enumeration value="load-collection" />
+ <xs:enumeration value="lock" />
+ <xs:enumeration value="refresh" />
+ <xs:enumeration value="replicate" />
+ <xs:enumeration value="save-update" />
+ <xs:enumeration value="save" />
+ <xs:enumeration value="pre-update" />
+ <xs:enumeration value="update" />
+ <xs:enumeration value="pre-load" />
+ <xs:enumeration value="pre-delete" />
+ <xs:enumeration value="pre-insert" />
+ <xs:enumeration value="post-load" />
+ <xs:enumeration value="post-insert" />
+ <xs:enumeration value="post-update" />
+ <xs:enumeration value="post-delete" />
+ <xs:enumeration value="post-commit-update" />
+ <xs:enumeration value="post-commit-insert" />
+ <xs:enumeration value="post-commit-delete" />
+ <xs:enumeration value="pre-collection-recreate" />
+ <xs:enumeration value="pre-collection-remove" />
+ <xs:enumeration value="pre-collection-update" />
+ <xs:enumeration value="post-collection-recreate" />
+ <xs:enumeration value="post-collection-remove" />
+ <xs:enumeration value="post-collection-update" />
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:element name="bytecode-provider">
+ <xs:complexType>
+ <xs:sequence>
+ </xs:sequence>
+ <xs:attribute name="type" default="lcg">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="codedom" />
+ <xs:enumeration value="lcg" />
+ <xs:enumeration value="null" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="reflection-optimizer">
+ <xs:complexType>
+ <xs:sequence />
+ <xs:attribute name="use" type="xs:boolean" />
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
1,690 TrickyBug/SharedLibs/nhibernate-mapping.xsd
@@ -0,0 +1,1690 @@
+<xs:schema targetNamespace="urn:nhibernate-mapping-2.2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:nhibernate-mapping-2.2" elementFormDefault="qualified" attributeFormDefault="unqualified">
+ <xs:element name="any">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="meta-value" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="column" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="id-type" use="required" type="xs:string" />
+ <xs:attribute name="meta-type" type="xs:string" />
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="insert" default="true" type="xs:boolean" />
+ <xs:attribute name="update" default="true" type="xs:boolean" />
+ <xs:attribute name="cascade" type="xs:string" />
+ <xs:attribute name="index" type="xs:string" />
+ <xs:attribute name="optimistic-lock" default="true" type="xs:boolean" />
+ <xs:attribute name="lazy" default="false" type="xs:boolean" />
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="array">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="subselect" minOccurs="0" />
+ <xs:element ref="cache" minOccurs="0" />
+ <xs:element ref="synchronize" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="comment" minOccurs="0" />
+ <xs:element ref="key" />
+ <xs:choice>
+ <xs:element ref="index" />
+ <xs:element ref="list-index" />
+ </xs:choice>
+ <xs:choice>
+ <xs:element ref="element" />
+ <xs:element ref="one-to-many" />
+ <xs:element ref="many-to-many" />
+ <xs:element ref="composite-element" />
+ <xs:element ref="many-to-any" />
+ </xs:choice>
+ <xs:element ref="loader" minOccurs="0" />
+ <xs:element ref="sql-insert" minOccurs="0" />
+ <xs:element ref="sql-update" minOccurs="0" />
+ <xs:element ref="sql-delete" minOccurs="0" />
+ <xs:element ref="sql-delete-all" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="table" type="xs:string" />
+ <xs:attribute name="schema" type="xs:string" />
+ <xs:attribute name="catalog" type="xs:string" />
+ <xs:attribute name="subselect" type="xs:string" />
+ <xs:attribute name="inverse" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="mutable" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="element-class" type="xs:string" />
+ <xs:attribute name="cascade" type="xs:string" />
+ <xs:attribute name="where" type="xs:string" />
+ <xs:attribute name="batch-size" type="xs:int" />
+ <xs:attribute name="outer-join" type="outerJoinStrategy">
+ </xs:attribute>
+ <xs:attribute name="fetch" type="collectionFetchMode">
+ </xs:attribute>
+ <xs:attribute name="persister" type="xs:string" />
+ <xs:attribute name="collection-type" type="xs:string" />
+ <xs:attribute name="check" type="xs:string" />
+ <xs:attribute name="optimistic-lock" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="embed-xml" default="true" type="xs:boolean">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="bag">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="subselect" minOccurs="0" />
+ <xs:element ref="cache" minOccurs="0" />
+ <xs:element ref="synchronize" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="comment" minOccurs="0" />
+ <xs:element ref="key" />
+ <xs:choice>
+ <xs:element ref="element" />
+ <xs:element ref="one-to-many" />
+ <xs:element ref="many-to-many" />
+ <xs:element ref="composite-element" />
+ <xs:element ref="many-to-any" />
+ </xs:choice>
+ <xs:element ref="loader" minOccurs="0" />
+ <xs:element ref="sql-insert" minOccurs="0" />
+ <xs:element ref="sql-update" minOccurs="0" />
+ <xs:element ref="sql-delete" minOccurs="0" />
+ <xs:element ref="sql-delete-all" minOccurs="0" />
+ <xs:element ref="filter" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attributeGroup ref="baseCollectionAttributes" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="cache">
+ <xs:complexType>
+ <xs:attribute name="usage" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="read-only" />
+ <xs:enumeration value="read-write" />
+ <xs:enumeration value="nonstrict-read-write" />
+ <xs:enumeration value="transactional" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="region" type="xs:string" use="optional">
+ </xs:attribute>
+ <xs:attribute name="include" default="all">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="all" />
+ <xs:enumeration value="non-lazy" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="subselect" minOccurs="0" />
+ <xs:element ref="cache" minOccurs="0" />
+ <xs:element ref="synchronize" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="comment" minOccurs="0" />
+ <xs:element ref="tuplizer" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice>
+ <xs:element ref="id" />
+ <xs:element ref="composite-id" />
+ </xs:choice>
+ <xs:element ref="discriminator" minOccurs="0" />
+ <xs:element ref="natural-id" minOccurs="0" />
+ <xs:choice minOccurs="0">
+ <xs:element ref="version" />
+ <xs:element ref="timestamp" />
+ </xs:choice>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="property" />
+ <xs:element ref="many-to-one" />
+ <xs:element ref="one-to-one" />
+ <xs:element ref="component" />
+ <xs:element ref="dynamic-component" />
+ <xs:element ref="properties" />
+ <xs:element ref="any" />
+ <xs:element ref="map" />
+ <xs:element ref="set" />
+ <xs:element ref="list" />
+ <xs:element ref="bag" />
+ <xs:element ref="idbag" />
+ <xs:element ref="array" />
+ <xs:element ref="primitive-array" />
+ </xs:choice>
+ <xs:choice>
+ <xs:sequence>
+ <xs:element ref="join" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="subclass" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:element ref="joined-subclass" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="union-subclass" minOccurs="0" maxOccurs="unbounded" />
+ </xs:choice>
+ <xs:element ref="loader" minOccurs="0" />
+ <xs:element ref="sql-insert" minOccurs="0" />
+ <xs:element ref="sql-update" minOccurs="0" />
+ <xs:element ref="sql-delete" minOccurs="0" />
+ <xs:element ref="filter" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="resultset" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="query" />
+ <xs:element ref="sql-query" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="entity-name" type="xs:string">
+ </xs:attribute>
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="proxy" type="xs:string" />
+ <xs:attribute name="lazy" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="schema-action" type="xs:string" />
+ <xs:attribute name="table" type="xs:string" />
+ <xs:attribute name="schema" type="xs:string" />
+ <xs:attribute name="catalog" type="xs:string" />
+ <xs:attribute name="subselect" type="xs:string" />
+ <xs:attribute name="discriminator-value" type="xs:string" />
+ <xs:attribute name="mutable" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="abstract" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="polymorphism" default="implicit" type="polymorphismType">
+ </xs:attribute>
+ <xs:attribute name="where" type="xs:string" />
+ <xs:attribute name="persister" type="xs:string" />
+ <xs:attribute name="dynamic-update" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="dynamic-insert" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="batch-size" type="xs:int" />
+ <xs:attribute name="select-before-update" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="optimistic-lock" default="version" type="optimisticLockMode">
+ </xs:attribute>
+ <xs:attribute name="check" type="xs:string" />
+ <xs:attribute name="rowid" type="xs:string" />
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="collection-id">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="column" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="generator" />
+ </xs:sequence>
+ <xs:attribute name="column" use="required" type="xs:string" />
+ <xs:attribute name="type" use="required" type="xs:string" />
+ <xs:attribute name="length" type="xs:positiveInteger" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="column">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="comment" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string">
+ </xs:attribute>
+ <xs:attribute name="length" type="xs:positiveInteger" />
+ <xs:attribute name="precision" type="xs:positiveInteger" />
+ <xs:attribute name="scale" type="xs:positiveInteger" />
+ <xs:attribute name="not-null" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="unique" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="unique-key" type="xs:string" />
+ <xs:attribute name="sql-type" type="xs:string" />
+ <xs:attribute name="index" type="xs:string" />
+ <xs:attribute name="check" type="xs:string" />
+ <xs:attribute name="default" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="comment">
+ <xs:complexType mixed="true">
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="component">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="tuplizer" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="parent" minOccurs="0" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="property" />
+ <xs:element ref="many-to-one" />
+ <xs:element ref="one-to-one" />
+ <xs:element ref="component" />
+ <xs:element ref="dynamic-component" />
+ <xs:element ref="any" />
+ <xs:element ref="map" />
+ <xs:element ref="set" />
+ <xs:element ref="list" />
+ <xs:element ref="bag" />
+ <xs:element ref="idbag" />
+ <xs:element ref="array" />
+ <xs:element ref="primitive-array" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="unique" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="update" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="insert" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="lazy" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="optimistic-lock" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="composite-element">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="parent" minOccurs="0" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="property" />
+ <xs:element ref="many-to-one" />
+ <xs:element ref="any" />
+ <xs:element ref="nested-composite-element" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="class" use="required" type="xs:string" />
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="composite-id">
+ <xs:annotation>
+ <xs:documentation>A composite key may be modelled by a .NET class with a property for each key column. The class must be Serializable and override equals() and hashCode()</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="key-property" />
+ <xs:element ref="key-many-to-one" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="mapped" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="unsaved-value" default="undefined" type="unsavedValueType">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="composite-index">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="key-property" />
+ <xs:element ref="key-many-to-one" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="class" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="composite-map-key">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="key-property" />
+ <xs:element ref="key-many-to-one" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="class" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="create">
+ <xs:complexType mixed="true">
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="database-object">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice>
+ <xs:element ref="definition" />
+ <xs:sequence>
+ <xs:element ref="create" />
+ <xs:element ref="drop" />
+ </xs:sequence>
+ </xs:choice>
+ <xs:element ref="dialect-scope" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="definition">
+ <xs:complexType>
+ <xs:attribute name="class" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="dialect-scope">
+ <xs:complexType mixed="true">
+ <xs:attribute name="name" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="discriminator">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="column" />
+ <xs:element ref="formula" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="formula" type="xs:string" />
+ <xs:attribute name="type" default="string" type="xs:string" />
+ <xs:attribute name="not-null" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="length" type="xs:positiveInteger" />
+ <xs:attribute name="force" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="insert" default="true" type="xs:boolean">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="drop">
+ <xs:complexType mixed="true">
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="dynamic-component">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="property" />
+ <xs:element ref="many-to-one" />
+ <xs:element ref="one-to-one" />
+ <xs:element ref="component" />
+ <xs:element ref="dynamic-component" />
+ <xs:element ref="any" />
+ <xs:element ref="map" />
+ <xs:element ref="set" />
+ <xs:element ref="list" />
+ <xs:element ref="bag" />
+ <xs:element ref="array" />
+ <xs:element ref="primitive-array" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="unique" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="update" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="insert" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="optimistic-lock" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="element">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="column" />
+ <xs:element ref="formula" />
+ </xs:choice>
+ <xs:element ref="type" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="formula" type="xs:string" />
+ <xs:attribute name="type" type="xs:string" />
+ <xs:attribute name="length" type="xs:positiveInteger" />
+ <xs:attribute name="precision" type="xs:positiveInteger" />
+ <xs:attribute name="scale" type="xs:positiveInteger" />
+ <xs:attribute name="not-null" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="unique" default="false" type="xs:boolean">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="filter">
+ <xs:complexType mixed="true">
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="condition" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="filter-def">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="filter-param" />
+ </xs:choice>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="condition" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="filter-param">
+ <xs:complexType>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="type" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="formula">
+ <xs:complexType mixed="true">
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="generator">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="param" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="class" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="hibernate-mapping">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="typedef" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="import" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="class" />
+ <xs:element ref="subclass" />
+ <xs:element ref="joined-subclass" />
+ <xs:element ref="union-subclass" />
+ </xs:choice>
+ <xs:element ref="resultset" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="query" />
+ <xs:element ref="sql-query" />
+ </xs:choice>
+ <xs:element ref="filter-def" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="database-object" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="schema" type="xs:string" />
+ <xs:attribute name="catalog" type="xs:string" />
+ <xs:attribute name="default-cascade" default="none" type="xs:string" />
+ <xs:attribute name="default-access" default="property" type="xs:string" />
+ <xs:attribute name="default-lazy" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="auto-import" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="namespace" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation>Namespace used to find not-Fully Qualified Type Names</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="assembly" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation>Assembly used to find not-Fully Qualified Type Names</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="id">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="column" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="type" minOccurs="0" />
+ <xs:element ref="generator" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="type" type="xs:string" />
+ <xs:attribute name="length" type="xs:positiveInteger" />
+ <xs:attribute name="unsaved-value" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="idbag">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="subselect" minOccurs="0" />
+ <xs:element ref="cache" minOccurs="0" />
+ <xs:element ref="synchronize" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="comment" minOccurs="0" />
+ <xs:element ref="collection-id" />
+ <xs:element ref="key" />
+ <xs:choice>
+ <xs:element ref="element" />
+ <xs:element ref="many-to-many" />
+ <xs:element ref="composite-element" />
+ <xs:element ref="many-to-any" />
+ </xs:choice>
+ <xs:element ref="loader" minOccurs="0" />
+ <xs:element ref="sql-insert" minOccurs="0" />
+ <xs:element ref="sql-update" minOccurs="0" />
+ <xs:element ref="sql-delete" minOccurs="0" />
+ <xs:element ref="sql-delete-all" minOccurs="0" />
+ <xs:element ref="filter" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attributeGroup ref="baseCollectionAttributes" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="import">
+ <xs:complexType>
+ <xs:attribute name="class" use="required" type="xs:string" />
+ <xs:attribute name="rename" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="index">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="column" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="type" type="xs:string" />
+ <xs:attribute name="length" type="xs:positiveInteger" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="index-many-to-any">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="column" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="id-type" use="required" type="xs:string" />
+ <xs:attribute name="meta-type" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="index-many-to-many">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="column" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="class" use="required" type="xs:string" />
+ <xs:attribute name="entity-name" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="foreign-key" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="join">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="subselect" minOccurs="0" />
+ <xs:element ref="comment" minOccurs="0" />
+ <xs:element ref="key" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="property" />
+ <xs:element ref="many-to-one" />
+ <xs:element ref="component" />
+ <xs:element ref="dynamic-component" />
+ <xs:element ref="any" />
+ <xs:element ref="map" />
+ <xs:element ref="set" />
+ <xs:element ref="list" />
+ <xs:element ref="bag" />
+ <xs:element ref="idbag" />
+ <xs:element ref="array" />
+ <xs:element ref="primitive-array" />
+ </xs:choice>
+ <xs:element ref="sql-insert" minOccurs="0" />
+ <xs:element ref="sql-update" minOccurs="0" />
+ <xs:element ref="sql-delete" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="table" use="required" type="xs:string" />
+ <xs:attribute name="schema" type="xs:string" />
+ <xs:attribute name="catalog" type="xs:string" />
+ <xs:attribute name="subselect" type="xs:string" />
+ <xs:attribute name="fetch" default="join">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="join" />
+ <xs:enumeration value="select" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="inverse" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="optional" default="false" type="xs:boolean">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="joined-subclass">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="subselect" minOccurs="0" />
+ <xs:element ref="synchronize" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="comment" minOccurs="0" />
+ <xs:element ref="tuplizer" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="key" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="property" />
+ <xs:element ref="many-to-one" />
+ <xs:element ref="one-to-one" />
+ <xs:element ref="component" />
+ <xs:element ref="dynamic-component" />
+ <xs:element ref="properties" />
+ <xs:element ref="any" />
+ <xs:element ref="map" />
+ <xs:element ref="set" />
+ <xs:element ref="list" />
+ <xs:element ref="bag" />
+ <xs:element ref="idbag" />
+ <xs:element ref="array" />
+ <xs:element ref="primitive-array" />
+ </xs:choice>
+ <xs:element ref="joined-subclass" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="loader" minOccurs="0" />
+ <xs:element ref="sql-insert" minOccurs="0" />
+ <xs:element ref="sql-update" minOccurs="0" />
+ <xs:element ref="sql-delete" minOccurs="0" />
+ <xs:element ref="resultset" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="query" />
+ <xs:element ref="sql-query" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="entity-name" type="xs:string">
+ </xs:attribute>
+ <xs:attribute name="name" type="xs:string" />
+ <xs:attribute name="proxy" type="xs:string" />
+ <xs:attribute name="table" type="xs:string" />
+ <xs:attribute name="schema" type="xs:string" />
+ <xs:attribute name="catalog" type="xs:string" />
+ <xs:attribute name="subselect" type="xs:string" />
+ <xs:attribute name="dynamic-update" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="dynamic-insert" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="select-before-update" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="extends" type="xs:string" />
+ <xs:attribute name="lazy" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="abstract" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="persister" type="xs:string" />
+ <xs:attribute name="check" type="xs:string" />
+ <xs:attribute name="batch-size" type="xs:positiveInteger" />
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="key">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="column" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="property-ref" type="xs:string" />
+ <xs:attribute name="foreign-key" type="xs:string" />
+ <xs:attribute name="on-delete" default="noaction" type="ondelete">
+ </xs:attribute>
+ <xs:attribute name="not-null" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="update" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="unique" type="xs:boolean">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="key-many-to-one">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="column" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="entity-name" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="foreign-key" type="xs:string" />
+ <xs:attribute name="lazy" type="restrictedLaziness">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="key-property">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="column" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="type" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="type" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="length" type="xs:positiveInteger" />
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="list">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="subselect" minOccurs="0" />
+ <xs:element ref="cache" minOccurs="0" />
+ <xs:element ref="synchronize" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="comment" minOccurs="0" />
+ <xs:element ref="key" />
+ <xs:choice>
+ <xs:element ref="index" />
+ <xs:element ref="list-index" />
+ </xs:choice>
+ <xs:choice>
+ <xs:element ref="element" />
+ <xs:element ref="one-to-many" />
+ <xs:element ref="many-to-many" />
+ <xs:element ref="composite-element" />
+ <xs:element ref="many-to-any" />
+ </xs:choice>
+ <xs:element ref="loader" minOccurs="0" />
+ <xs:element ref="sql-insert" minOccurs="0" />
+ <xs:element ref="sql-update" minOccurs="0" />
+ <xs:element ref="sql-delete" minOccurs="0" />
+ <xs:element ref="sql-delete-all" minOccurs="0" />
+ <xs:element ref="filter" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attributeGroup ref="baseCollectionAttributes" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="list-index">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="column" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="base" type="xs:positiveInteger" use="optional" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="load-collection">
+ <xs:complexType>
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="return-property" />
+ </xs:sequence>
+ <xs:attribute name="alias" use="required" type="xs:string" />
+ <xs:attribute name="role" use="required" type="xs:string" />
+ <xs:attribute name="lock-mode" default="read" type="lockMode">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="loader">
+ <xs:complexType>
+ <xs:attribute name="query-ref" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="many-to-any">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta-value" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="column" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="id-type" use="required" type="xs:string" />
+ <xs:attribute name="meta-type" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="many-to-many">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="column" />
+ <xs:element ref="formula" />
+ </xs:choice>
+ <xs:element ref="filter" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="embed-xml" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="entity-name" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="formula" type="xs:string" />
+ <xs:attribute name="not-found" default="exception" type="notFoundMode">
+ </xs:attribute>
+ <xs:attribute name="outer-join" type="outerJoinStrategy">
+ </xs:attribute>
+ <xs:attribute name="fetch" type="fetchMode">
+ </xs:attribute>
+ <xs:attribute name="lazy" type="restrictedLaziness">
+ </xs:attribute>
+ <xs:attribute name="foreign-key" type="xs:string" />
+ <xs:attribute name="unique" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="where" type="xs:string" />
+ <xs:attribute name="order-by" type="xs:string" />
+ <xs:attribute name="property-ref" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="many-to-one">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="column" />
+ <xs:element ref="formula" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="entity-name" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="not-null" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="unique" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="unique-key" type="xs:string" />
+ <xs:attribute name="index" type="xs:string" />
+ <xs:attribute name="cascade" type="xs:string" />
+ <xs:attribute name="outer-join" type="outerJoinStrategy">
+ </xs:attribute>
+ <xs:attribute name="fetch" type="fetchMode">
+ </xs:attribute>
+ <xs:attribute name="update" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="insert" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="optimistic-lock" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="foreign-key" type="xs:string" />
+ <xs:attribute name="property-ref" type="xs:string" />
+ <xs:attribute name="formula" type="xs:string" />
+ <xs:attribute name="lazy" type="laziness">
+ </xs:attribute>
+ <xs:attribute name="not-found" default="exception" type="notFoundMode">
+ </xs:attribute>
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="embed-xml" default="true" type="xs:boolean">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="map">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="subselect" minOccurs="0" />
+ <xs:element ref="cache" minOccurs="0" />
+ <xs:element ref="synchronize" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="comment" minOccurs="0" />
+ <xs:element ref="key" />
+ <xs:choice>
+ <xs:element ref="map-key" />
+ <xs:element ref="composite-map-key" />
+ <xs:element ref="map-key-many-to-many" />
+ <xs:element ref="index" />
+ <xs:element ref="composite-index" />
+ <xs:element ref="index-many-to-many" />
+ <xs:element ref="index-many-to-any" />
+ </xs:choice>
+ <xs:choice>
+ <xs:element ref="element" />
+ <xs:element ref="one-to-many" />
+ <xs:element ref="many-to-many" />
+ <xs:element ref="composite-element" />
+ <xs:element ref="many-to-any" />
+ </xs:choice>
+ <xs:element ref="loader" minOccurs="0" />
+ <xs:element ref="sql-insert" minOccurs="0" />
+ <xs:element ref="sql-update" minOccurs="0" />
+ <xs:element ref="sql-delete" minOccurs="0" />
+ <xs:element ref="sql-delete-all" minOccurs="0" />
+ <xs:element ref="filter" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attributeGroup ref="baseCollectionAttributes" />
+ <xs:attribute name="sort" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="map-key">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="column" />
+ <xs:element ref="formula" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="formula" type="xs:string" />
+ <xs:attribute name="type" use="required" type="xs:string" />
+ <xs:attribute name="length" type="xs:positiveInteger" />
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="map-key-many-to-many">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="column" />
+ <xs:element ref="formula" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="entity-name" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="formula" type="xs:string" />
+ <xs:attribute name="foreign-key" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="meta">
+ <xs:complexType mixed="true">
+ <xs:attribute name="attribute" use="required" type="xs:string" />
+ <xs:attribute name="inherit" default="true" type="xs:boolean" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="meta-value">
+ <xs:complexType>
+ <xs:attribute name="value" use="required" type="xs:string" />
+ <xs:attribute name="class" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="natural-id">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="property" />
+ <xs:element ref="many-to-one" />
+ <xs:element ref="component" />
+ <xs:element ref="dynamic-component" />
+ <xs:element ref="any" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="mutable" default="false" type="xs:boolean">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="nested-composite-element">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="parent" minOccurs="0" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="property" />
+ <xs:element ref="many-to-one" />
+ <xs:element ref="any" />
+ <xs:element ref="nested-composite-element" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="class" use="required" type="xs:string" />
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="one-to-many">
+ <xs:complexType>
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="not-found" default="exception" type="notFoundMode">
+ </xs:attribute>
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="embed-xml" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="entity-name" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="one-to-one">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="formula" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="formula" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="entity-name" type="xs:string" />
+ <xs:attribute name="cascade" type="xs:string" />
+ <xs:attribute name="outer-join" type="outerJoinStrategy">
+ </xs:attribute>
+ <xs:attribute name="fetch" type="fetchMode">
+ </xs:attribute>
+ <xs:attribute name="constrained" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="foreign-key" type="xs:string" />
+ <xs:attribute name="property-ref" type="xs:string" />
+ <xs:attribute name="lazy" type="laziness">
+ </xs:attribute>
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="embed-xml" default="true" type="xs:boolean">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="param">
+ <xs:complexType mixed="true">
+ <xs:attribute name="name" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="parent">
+ <xs:complexType>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="primitive-array">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="subselect" minOccurs="0" />
+ <xs:element ref="cache" minOccurs="0" />
+ <xs:element ref="synchronize" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="comment" minOccurs="0" />
+ <xs:element ref="key" />
+ <xs:choice>
+ <xs:element ref="index" />
+ <xs:element ref="list-index" />
+ </xs:choice>
+ <xs:element ref="element" />
+ <xs:element ref="loader" minOccurs="0" />
+ <xs:element ref="sql-insert" minOccurs="0" />
+ <xs:element ref="sql-update" minOccurs="0" />
+ <xs:element ref="sql-delete" minOccurs="0" />
+ <xs:element ref="sql-delete-all" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string">
+ </xs:attribute>
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="table" type="xs:string" />
+ <xs:attribute name="schema" type="xs:string" />
+ <xs:attribute name="catalog" type="xs:string" />
+ <xs:attribute name="subselect" type="xs:string" />
+ <xs:attribute name="mutable" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="where" type="xs:string" />
+ <xs:attribute name="batch-size" type="xs:positiveInteger" />
+ <xs:attribute name="outer-join">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="true" />
+ <xs:enumeration value="false" />
+ <xs:enumeration value="auto" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="fetch">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="join" />
+ <xs:enumeration value="select" />
+ <xs:enumeration value="subselect" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="persister" type="xs:string" />
+ <xs:attribute name="collection-type" type="xs:string" />
+ <xs:attribute name="check" type="xs:string" />
+ <xs:attribute name="optimistic-lock" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="embed-xml" default="true" type="xs:boolean">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="properties">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="property" />
+ <xs:element ref="many-to-one" />
+ <xs:element ref="component" />
+ <xs:element ref="dynamic-component" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="unique" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="insert" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="update" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="optimistic-lock" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="node" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="property">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded" />
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="column" />
+ <xs:element ref="formula" />
+ </xs:choice>
+ <xs:element ref="type" minOccurs="0" />
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="node" type="xs:string" />
+ <xs:attribute name="access" type="xs:string" />
+ <xs:attribute name="type" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ <xs:attribute name="length" type="xs:positiveInteger" />
+ <xs:attribute name="precision" type="xs:positiveInteger" />
+ <xs:attribute name="scale" type="xs:positiveInteger" />
+ <xs:attribute name="not-null" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="unique" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="unique-key" type="xs:string" />
+ <xs:attribute name="index" type="xs:string" />
+ <xs:attribute name="update" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="insert" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="optimistic-lock" default="true" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="formula" type="xs:string" />
+ <xs:attribute name="lazy" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="generated" default="never" type="propertyGeneration">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="query">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="query-param" />
+ </xs:choice>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="flush-mode" type="flushMode">
+ </xs:attribute>
+ <xs:attribute name="cacheable" default="false" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="cache-region" type="xs:string" />
+ <xs:attribute name="fetch-size" type="xs:int" />
+ <xs:attribute name="timeout" type="xs:positiveInteger" />
+ <xs:attribute name="cache-mode" type="cacheMode">
+ </xs:attribute>
+ <xs:attribute name="read-only" type="xs:boolean">
+ </xs:attribute>
+ <xs:attribute name="comment" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="query-param">
+ <xs:complexType>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="type" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="resultset">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="return-scalar" />
+ <xs:element ref="return" />
+ <xs:element ref="return-join" />
+ <xs:element ref="load-collection" />
+ </xs:choice>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="return">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="return-discriminator" minOccurs="0" maxOccurs="1" />
+ <xs:element ref="return-property" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="alias" type="xs:string" />
+ <xs:attribute name="entity-name" type="xs:string" />
+ <xs:attribute name="class" type="xs:string" />
+ <xs:attribute name="lock-mode" default="read" type="lockMode">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="return-column">
+ <xs:complexType>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="return-discriminator">
+ <xs:complexType>
+ <xs:attribute name="column" use="required" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="return-join">
+ <xs:complexType>
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="return-property" />
+ </xs:sequence>
+ <xs:attribute name="alias" use="required" type="xs:string" />
+ <xs:attribute name="property" use="required" type="xs:string" />
+ <xs:attribute name="lock-mode" default="read" type="lockMode">
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="return-property">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="return-column" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:string" />
+ <xs:attribute name="column" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="return-scalar">
+ <xs:complexType>
+ <xs:attribute name="column" use="required" type="xs:string" />
+ <xs:attribute name="type" type="xs:string" />
+ </xs:complexType>
+ </xs:element>
+ <