update domain entity