solving problem in persistence many-to-many and some ar changes