Support identity attribute inheritance

If the identity attribute is not defined for a entity, Groot search for it in its super entities.