add entity with join