Hi,
I have an interface (shortened for demo purposes):
Code:
/**
* @hibernate.class table="tbl_customer" discriminator-value="Customer"
* @hibernate.discriminator column="discrim"
*/
public interface Customer extends Auditable {
/**
* @hibernate.id generator-class="sequence"
* @hibernate.generator-param name="sequence" value="seq_customer"
*/
public Long getId();
public void setId(Long value);
/**
* @hibernate.component
*/
public Login getLogin();
public void setLogin(Login login);
}
plus a class which implements interface Customer:
Code:
/**
* @hibernate.subclass discriminator-value="BaseCustomer"
*/
public class BaseCustomer implements Serializable, Customer {
private Long _id;
private Login _login;
public Long getId() {
return _id;
}
public void setId(Long value) {
_id = value;
}
public Login getLogin() {
return _login;
}
public void setLogin(Login login) {
_login = login;
}
public AuditInfo getAuditInfo() {
return _auditInfo;
}
public void setAuditInfo(AuditInfo value) {
_auditInfo = value;
}
}
Auditable also has hibernate xdoclet tags. So far so good.
When I generate my mapping files however, the the subclass is not included in the mapping file at all, just that from Customer (plus the tags from Auditable).
I've searched all over the place, without any luck apart from one reference from the old SF forums:
http://forum.hibernate.org/old/913295.html which is exactly the problem I'm having.
Is this at all possible, a bug or should I approach this in another way? I be grateful for any pointers.
TIA,
John