Understanding EclipseLink, 2.4
  Go To Table Of Contents
 Search
 PDF

Descriptor API

The Descriptor API can be used to define, or amend EclipseLink descriptors through Java code. The Descriptor API classes are mainly in the org.eclipse.persistence.descriptors package. These include the following classes:

The Descriptor API also includes these non-relational descriptors:

For object-relational data type and XML projects, descriptor classes are in the org.eclipse.persistence.mappings.structures and org.eclipse.persistence.oxm packages, respectively.

The following illustrates the hierarchy of descriptor types that derive from the class org.eclipse.persistence.descriptors.ClassDescriptor.

class org.eclipse.persistence.descriptors.ClassDescriptor
    class org.eclipse.persistence.descriptors.RelationalDescriptor
        class org.eclipse.persistence.mappings.structures.ObjectRelationalDataTypeDescriptor
    class org.eclipse.persistence.oxm.XMLDescriptor