EntityHelper
The EntityHelper class contains useful methods that helps managing entities.
See also: org.motechproject.mds.domain.Entity
org.motechproject.mds.domain.Entity
addDefaultFields
Adds default fields to entity
getRelatedEntityClasses
Retrieves all entity classes that are referenced from entity.
related entity classes names
removeAdditionalFieldsAndLookups
In case of DDE, removes all fields and lookups that are not part of the original schema (was added later). In case of EUDE, removes all fields and lookups.