I have two entity classes, A and B. Entity bean A is mapped with a database table and have @id primary key. Entity bean B is mapped with another database table with @id primary key. I need to Inherit B from A. It is showing error. I am using JBoss jboss-5.0.0.Beta4 and eclipse 3.1.