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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel