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


descriptor.customizer

Use eclipselink.descriptor.customizer as a prefix for a property to configure a DescriptorCustomizer. Use this class's customize method, which takes an org.eclipse.persistence.descriptors.ClassDescriptor, to programmatically access advanced EclipseLink descriptor and mapping API for the descriptor associated with the JPA entity.


Values

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

Table 5-32 Valid Values for descriptor.customizer

Value Description

name

Full name for a class which implements DescriptorCustomizer



Usage

You cannot use multiple descriptor customizers.


Examples

Example 5-20 shows how to use this property in the peristence.xml file.

Example 5-20 Using descriptor.customizer in persistence.xml

<property name="eclipselink.descriptor.customizer.Order" value="acme.sessions.MyDescriptorCustomizer"/>

Example 5-21 shows how to use this property with a property map.

Example 5-21 Using descriptor.customizer in a Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;
propertiesMap.put(PersistenceUnitProperties.DESCRIPTOR_CUSTOMIZER+".Order", "acme.sessions.MyDescriptorCustomizer");


See Also

For more information, see: