hi guys,

i just came across with idea of implementing inheritance in relational database where i have seen there are about four apporaches

1. Map the entire class hierarchy to a single table
2. Map each concrete class to its own table
3. Map each class to its own table
4. Map the classes into a generic table structure


The fourth approach seems to be more comfortable and dynamic. I like to ask you guys about ur experience how you implement inheritance. It would be also great if you furnish me with sample code in java with hibernate that i can have at least more concrete picture of above mentioned theortical approaches.

Thanks in advance.

ciao
romi