I have 3 related entities - A, B and C. There is a many-to-many relationship between A and B and a many-to-one between B and C. I am using CMR to manage these relationships.
I am trying to set object B on object A. Before that, I set object C on object B. While this is being done, Jboss attempts to set the reverse relationship on object C. For example, when i invoke, b.setC(), JBoss calls c.getBs(). I do not understand the need for this querying on the reverse relationship and is causing significant performance costs on our system.
I havent been able to trace the source of this problem. Your help would be appreciated.