Thanks Ravi for your reply,
Here are the details.
These two classes are working fine because there are opereated independent.
Now I want a third class Mapping. Relation between A and B are: A -> B(many to one) and B->A(One to One)
class Mapping
{
int a_Id;
int b_Id;
String mapping_Desc;
}
I want add/deletion in Mapping table should not reflect in either of Table A and B.
But for any entry in Mapping then Mapping->a_Id ,a_Id should be in Table_A and Mapping->b_Id ,b_Id should be in B table.
Please reply.