add set id and version null before insert