I am not sure if I understand this correctly. Do you have a scenario like this:
Code:
class BaseDistributor
{
private long distBrNo;
public long getDistBrNo() { return distBrNo; }
public void setDistBrNo(long distBrNo) { this.distBrNo = distBrNo; }
}
class Distributor extends BaseDistributor
{}
If so you just have to make sure that the Hibernate mapping maps the Distributor class, not the BaseDistributor class. According to the quoted mapping this is already the case. Are getters and setters in the base class private or how is your situation here? In this case you will have to make them public I guess, or increase visibility in the descendant class.
DC