Skip Headers

# Using Java

Previous

Next

Example: Creating an XML Descriptor in Java shows how to create a relational descriptor using Java code.

Creating an XML Descriptor in Java

    XMLDescriptor descriptor = new XMLDescriptor();
    descriptor.setJavaClass(YourClass.class);

Note: Use the `oracle.toplink.ox.XMLDescriptor` class. Do not use the deprecated `oracle.toplink.xml``.``XMLDescriptor` class.