Skip to main content
Close announcements banner

Java Object Mappings

Information noteImportant: The Java representation is no longer available in the R2024-02 Talend Studio monthly update and later ones delivered by Talend. For more information, check with your administrator.

In a Java object graph (a series of objects connected by pointers), you can have multiple pointers to the same object. For example, you can have a Department object with a list of Person objects and have a separate property for the manager that is also included in the list of Person objects. The manager's Person object appears in two different places, but it is a single object. When using Java objects as input, all Java objects are fully expanded in the structure definition even if they appear multiple times. This is to allow you to conveniently map from the object wherever it is. You can determine the unique identity of an object by looking at the id attribute of the root of the object's fields.

The only time an object is not expanded is if it would create a recursive loop. In the above example, suppose the Person object contains a pointer to its Department object. In this case, the Department object would not be expanded because it is an enclosing object of the Person object. It will appear without fields and with its id attribute referencing the enclosing Department object.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!