A computer implemented method, an apparatus and computer instruction are
provided for deployment of roles. Aspects of the present invention allow
user to define in a schema a definition of a relationship that comprises
a set of roles participating in the relationship. Each role in the set of
roles is defined as an inlined role or an independent role. After the
schema is processed, aspects of the present invention determine if the
role in the set of roles is an inlined role or an independent role based
on the definition of the relationship, deploy the relationship and the
role as a single entity if the role is an inlined role, and deploy the
relationship and the role as separate entities if the role is an
independent role.