Automatically set entity ID when composing a representation.