I have one super entity class named as "ManageMasterData" with @Inheritence (stratergy=InhertenceType=TABLE_PER_CLASS) and all the fields are there that are common to subclass entity beans
but all the subclass entity beans of above mentioned class have no extra field as all subclass has same fields members but they are refering to different tables so @Table(name=table_name) is put in subclass entity bean **as all tables which sub-entity beans refering have same column names.. but different kind of data ...
now i wanted to initiate the particular subclass entitybean using superclass ? pls tell me how do that and how to write query !!!