fix binding existing entities to a new Set

This fixes a failing test in the hibernate plugin