123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- targetNamespace="urn:jboss:jboss-jpa:1.0"
- xmlns="urn:jboss:jboss-jpa:1.0"
- elementFormDefault="unqualified"
- attributeFormDefault="unqualified"
- version="1.0">
-
-
-
-
-
-
-
-
-
- <xs:element name="jboss-jpa" type="jboss-jpa-type"/>
- <xs:complexType name="jboss-jpa-type">
- <xs:all>
- <xs:element name="extended-persistence" type="extended-persistence-type" minOccurs="0" maxOccurs="1"/>
- </xs:all>
- </xs:complexType>
- <xs:complexType name="extended-persistence-type">
- <xs:attribute name="inheritance" type="extended-persistence-inheritance-type" default="DEEP" use="optional">
- <xs:annotation>
- <xs:documentation>
- <![CDATA[[
- Controls how JPA extended persistence context (XPC) inheritance is performed.
- XPC inheritance only occurs between stateful session beans used within the same EJB3 thread.
- This might be a stateful bean that injects other stateful beans (directly or via JNDI lookup).
-
- With DEEP extended persistence inheritance, the extended persistence context is always shared at
- the top most stateful bean level. Even if the top level bean does not have an extended persistence
- context, sub-beans (siblings) will share the extended persistence context (requiring fewer copies of
- entities to be loaded).
-
- With SHALLOW extended persistence inheritance, the extended persistence context is only shared between
- a stateful bean and its parent bean. This means that sibling stateful beans with the same parent bean,
- will have isolated persistence contexts (assuming the parent bean doesn't have an extended persistence
- context).
- ]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:complexType>
- <xs:simpleType name="extended-persistence-inheritance-type">
- <xs:restriction base="xs:token">
- <xs:enumeration value="DEEP" />
- <xs:enumeration value="SHALLOW" />
- </xs:restriction>
- </xs:simpleType>
- </xs:schema>
|