They have to be set up before we persist the object. However, I am reworking some of this based on the equals/hashcode comments.