Extending hibernate entities with annotation
i need to extend an entity, with the same characteristics without using abstract classes. can i code something like below? @Entity @Table(name="ABC") @SequenceGenerator(sequenceName="SEQ_ABC",name="idGenerator",allocationSize=1) public class Abc { .. // define members } @Entity @Table(name="EX_ABC") public class ExAbc extends Abs { .. // define extras.. } thx in advance Yes, this one works without any problems. However you should have a look at the inheritance annotation. What's the problem: You have a table "Abc" which contains field1,filed2; Then you have ExAbc which contains the fields of