jboss-as-jpa_1_1.xsd 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2011, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:domain:jpa:1.1"
  25. xmlns="urn:jboss:domain:jpa:1.1"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.1">
  29. <!-- The managedbean subsystem root element -->
  30. <xs:element name="subsystem" type="subsystem"/>
  31. <xs:complexType name="subsystem">
  32. <xs:sequence>
  33. <xs:element name="jpa" type="jpa-config" />
  34. </xs:sequence>
  35. </xs:complexType>
  36. <xs:complexType name="jpa-config">
  37. <xs:attribute name="default-datasource" use="optional" type="xs:string" default=""/>
  38. <xs:attribute name="default-extended-persistence-inheritance" type="inheritance_type" use="optional" default="DEEP"/>
  39. </xs:complexType>
  40. <xs:simpleType name="inheritance_type">
  41. <xs:annotation>
  42. <xs:documentation>
  43. Controls how JPA extended persistence context (XPC) inheritance is performed.
  44. DEEP - Extended persistence context is shared at top bean level with all sub-beans referencing the same named persistence context.
  45. SHALLOW - Extended persistece context is only shared with the parent bean (never with sibling beans).
  46. </xs:documentation>
  47. </xs:annotation>
  48. <xs:restriction base="xs:token">
  49. <xs:enumeration value="DEEP"/>
  50. <xs:enumeration value="SHALLOW"/>
  51. </xs:restriction>
  52. </xs:simpleType>
  53. </xs:schema>