Converts entity instance to POJO, converting the Collections to arrays and unwrapping the Reference wrapper, while respecting the serialization options.
This method accepts either a single entity or an array of entities, and returns the corresponding POJO or an array of POJO.
To serialize a single entity, you can also use wrap(entity).serialize() which handles a single entity only.
Converts entity instance to POJO, converting the
Collection
s to arrays and unwrapping theReference
wrapper, while respecting the serialization options. This method accepts either a single entity or an array of entities, and returns the corresponding POJO or an array of POJO. To serialize a single entity, you can also usewrap(entity).serialize()
which handles a single entity only.