I want to persist all variables in a superclass only from childclass
Example:
//This class is from an API, I cannot touch or change
class SuperClass {
    private String name;
    private String info;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getInfo() {
        return info;
    }
    public void setInfo(String info) {
        this.info = info;
    }
}
@Entity
class ChildClass extends SuperClass {
    @id
    private long id;
}
I want the table to have these columns (id, name, info)
Is it doable? If yes, How?
 
     
     
     
     
    