fangEve wrote:
i have seen this website before. but i don't quit understand. could u do a simple explanation.
my doubt:
1) there is only 1 mapping file needed? the mapping file is based on the parent?
Better read the documentation about the different strategy of mappings. Moreover, to understand those solutions, you should think about how you would map inheritance inside an RDBMS.
fangEve wrote:
2) the subclass is the child?
The child of what? Are you speaking about child in inheritance or in a composition relationship?
fangEve wrote:
3) what is discriminator-value?
This is one part of one solution to map inheritance. For example, you can decide to map all persons to a single table. Hibernate will then use this field to know if the row is a women or a man, say.