Assuming I have class A as follows:
class A{ int id; int getId(){}; void setId(int id){}; }
And class B as follows:
@Entity @Table(name="B") class B extends A{ string name; @Column(length=20) string getName(){} void setName(){} }
How can I annotate the inherited id field from A so that Hibernate / JPA knows that this is the Id for the organization? I tried just putting @Id on the field in A, but that didn't work. I tried to make A an entity, and that didn't work either.
source share