Hi,
Hopefully I'm missing something obvious here. I have AuditInfo which is the bean to hold the AuditInfo fields. I have IAuditable interface which looks like this:
Code:
public interface IAuditable
{
public AuditInfo getAuditInfo();
}
as per Wiki and then the AuditInfoType that implement UserType and finally a meta tag in my persistent class:
Quote:
<meta attribute="implements">IAuditable</meta>
The property in my persistent class looks like:
Code:
<property name="auditInfo" type="AuditInfoType">
<column name="ON_BEHALF_OF_UNVL_ID"/>
.
.
.
</property>
So when I generate the persistent class I get the following:
Code:
public com.imi.hsos.reference.persistence.AuditInfoType getAuditInfo() {
return this.auditInfo;
}
which of course does not compile since it does not correspond with the interface it's implementing.
The only relationship between AuditInfo and AuditInfoType is the following in AuditInfoType:
Code:
public Class returnedClass()
{
return AuditInfo.class;
}
Is the code generator not looking at this?
Thanks for any ideas.
Peter[/quote]