I have:
@MappedSuperClass
public class A{
private int boo;
@Column(name = boo)
public int getBoo(){
return boo;
}
public void setBoo(int boo){
this.boo = boo;
}
}
The problem is, the column ‘boo’ may not exist for all tables. Is it possible to annotate getBoo() such that if the column does not exist, it keeps ‘boo’ as null?
Maybe it’s better to use inheritance here, I mean
class AWithBoo extends A.