I see that the MappedSuperClass annotations just for Classes not for interfaces.
If this is the case then I cannot have my Associations to work with my interfaces.
For example
Code:
public Interface Address{}
public Interface Person{
public Address getAddress();
public void setAddress(Address address);
}
public Interface Employee extends Person{
}
@MappedSuperClass
public Class PersomImpl implements Person{
//For a association here I am forced to use AddressImpl
// instead of Address
}
@Entity
public class AddressImpl implements Address{
}
@Entity
public Class Employee extends PersonImpl implements Employee{
}
I am missing any thing or this feature is not really provided by Hibernate.
Can any one suggest me a better way to implement this with Hibernate.
TIA
HHH