added support for assembling between dto and entity objects