1. A method for extracting metadata for plural related objects of different types from a database, comprising: defining a heterogeneous object type as a collection of database objects of different types; and upon a request to fetch a particular heterogeneous object, fetching member objects from the particular heterogeneous object in a specific order based on the definition of the heterogeneous object's type.