Skip Headers

# XML Mapping Types

Previous

Next

TopLink supports the XML mappings listed in Table: TopLink XML Mapping Types.

TopLink XML Mapping Types

Mapping Type | Description | Type | TopLink Workbench | Java
--- | --- | --- | --- | ---
"XML Direct Mapping" | Map a simple object attribute to an XML attribute or text node. | Basic |  |
"XML Composite Direct Collection Mapping" | Map a collection of simple object attributes to XML attributes or text nodes. | Basic |  |
"XML Composite Object Mapping" | Map any attribute that contains a single object to an XML element. The TopLink runtime uses the descriptor for the referenced object to populate the contents of that element. | Basic |  |
"XML Composite Collection Mapping" | Map an attribute that contains a homogenous collection of objects to multiple XML elements. The TopLink runtime uses the descriptor for the referenced object to populate the contents of those elements. | Basic |  |
"XML Any Object Mapping" | The any object XML mapping is similar to the composite object XML mapping (see "XML Composite Object Mapping"), except that the reference object may be of different types (including `String`), not necessarily related to each other through inheritance or a common interface. | Advanced |  |
"XML Any Collection Mapping" | The any collection XML mapping is similar to the composite collection XML mapping (see "XML Composite Collection Mapping") except that the referenced objects may be of different types (including `String`), not necessarily related to each other through inheritance or a common interface. | Advanced |  |
"XML Transformation Mapping" | Create custom mappings where one or more XML nodes can be used to create the object to be stored in a Java class's attribute. | Advanced |  |