Hibernate: I am inserting data into a table T1(a,b) , I want to update 'd' in table T2(a,c,d,e) using foreign key 'a'. How to write the hbm mapping file in both. It's a one-to-one relation.
Table T1(mac_id, cust_id)
Table T2(a,b, mac_id,c, status_id)
I want to update STATUS_ID to "assigned" if MAC_ID I inserted in T1, matches with MAC_ID present in T2.
My foreign key is "MAC_ID".