I am a Hibernate Newbie and have gone through the related documentation but could not find the solution.
We have a Table A which has a one to one relation with table B. Table B has one to many relation with table C. The columns in each of the tables and the relations are as following:
Table A(Class A) : id_a, id_b (Table A has one to one with table B)
Table B(Class B): id_b (The main table in the application)
Table C(Class C): id_c, id_b(Table C has many to one relationship with Table B))
Table B besides being the main application also is a linking table in this case.
Class A has a collection of class C objects. How do I write a hibernate mapping for the above business problem.
Thanks & Regards
Manu
|