Adds viewbuilder to domain entity.