From: Dheeraj D. <dhe...@da...> - 2006-12-01 05:01:28
|
Good Morning Sir, Now, I m using hibernate for my project. At that time I have handled all the cases including association. But some problem in genralization of classes. I m so confused how to make mapping and java file in hibernate for my this case . The case is : ----------------------------------------------------------------------------------------------------------------------- Table A : id bigint primary key, aName varchar(255) Table B: id bigint primary key, aId primary key -- This key is the foreign key of Table A (id column of Table A) bName varchar(255) Table C: id bigint primary key, aId primary key -- This key is the foreign key of Table A (id column of Table A) bId primary key -- This key is the foreign key of Table B (id column of Table B) bName varchar(255) ----------------------------------------------------------------------------------------------------------------------- The java files for these both cases generalize in this way : Class A { } Class B extends A { } Class C extends B { } ------------------------------------------------------------------------------------------------------------------------- So , Could you suggest me , how i can make my hibernate mapping files and java files for these two cases. Pls, reply to me as early as possible for this mail. Thnks , Dheeraj Dhiman |