spierepf wrote:
Should I persist the Components separately first and then persist the Assembly?
I am assuming that you have defined the relationship as bi-directional.
Therefore the Assembly would "own" the Component, hence I don't think it is possible to persist the Component first you would either need to persist both at the same time or do the Assembly first.
With regard to the error I suspect that you are removing the Component from the Collection maintained by the Assembly, but you haven't set the reference from the Component to the Assembly to null.
Hence hibernate is traversing the link from the child to the parent, but then discovering that the child is not part of the parents collection.