The underlying problem is probably that Hibernate doesn't cascade the save. So when you flush the Member
, Hibernate notices that the collection is still dirty (which is probably not what you want). So either flush the collection manually or tell Hibernate to cascade all the updates.