Class AbstractExchangeObject

All Implemented Interfaces:
PassthroughProperties, ExchangeObject, Serializable
Direct Known Subclasses:
Attribute, DefaultBatchItemErrorHandler.ErrorExchangeObject, EntityExchangeObject, Prices, Translation

public abstract class AbstractExchangeObject extends AbstractPassthroughProperties implements Serializable, ExchangeObject
Parent class that contains correlation Ids to re-create the structure. If this represents an entity with a database ID, use EntityExchangeObject instead.

The intention for this is to be used on any entities that will be passed to APIs for persistence or perhaps a class containing a group of entities.

If the class is just a property of an entity, this is unneeded. NOTE: If the previous statement is true, re-consider if you need to define a class at all. This service just passes data through as-is without needing to explicitly define every property on an entity. Unless you need to perform some kind of action using the data, you do not need to define a class. If you need a custom complex data structure, it is recommended that you extend an existing entity and define the relationship there rather than use the AbstractPassthroughProperties.getCustomProperties(), which makes use of @JsonAnyGetter and JsonAnySetter.

See Also: