Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.4
  Go To Table Of Contents
 Search
 PDFComments
Comments


session.include.descriptor.queries

Use eclipselink.session.include.descriptor.queries to specify if the copying of all descriptor named queries to the session are to be usable from the entity manager.


Values

Table 5-85 describes this persistence property's values.

Table 5-85 Valid Values for session.include.descriptor.queries

Value Description

true

(Default) Enable copying.

false

Disable copying.



Usage


Examples

Example 5-85 shows how to use this property in the persistence.xml file.

Example 5-85 Using session.include.descriptor.queries in persistence.xml

<property name="eclipselink.session.include.descriptor.queries" value="false"/>

Example 5-86 shows how to use this property in a property map.

Example 5-86 Using session.include.descriptor.queries in a Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;
propertiesMap.put(PersistenceUnitProperties.INCLUDE_DESCRIPTOR_QUERIES, "false");


See Also

For more information, see: