polimorphism « Composite « JPA Q&A

1. implicit polimorphism in a     forum.hibernate.org

Hi, I use hibernate 2.1.6. I have defined three Entities: Product, Vehicle, SparePart. class Vehicle extends Product {} class SparePart extends Product {} I should use table per concrete class using implicit polymorphism, which means that each Entity (Product, Vehicle, SparePart) has its own table. Now I have the following mapping file: