1. A method comprising: retrieving an entity in response to a query; serializing the entity; and preserving relationships associated with the entity by attaching key information to the entity, and wherein a retrieval of a relationship varies according to whether a value included in the key information is null or non-null.