setting entity instance owner id