I am somewhat confused about the mapping between two tables through Hibernate. My requirement is as follows:
I have two tables A and B.
A has two fields ( contentid , name) where as B has ( id, contentid, name, name2).
Now what i want is that when I update/insert in the table A, that should be automatically inserted/updated in table B.
I had tried all the combinations which are there in hibernate tutorials but not working properly, Can any one help in making the correct mapping files/classes for the aabove scenario.
Thanks in advance
_________________ Khajan Joshi
|