Hi,
I've just switched to using XDoclet in conjunction with Hibernate, and come across a little stumbling block. Whilst trying to integrate the AuditInfo pattern (verbatim) to one of my classes, it is not generating the correct mapping. XDoclet tags as follows:
Code:
/**
* @hibernate.property type="AuditInfoType"
*/
public AuditInfo getAuditInfo() {
return auditInfo;
}
public void setAuditInfo(AuditInfo value) {
auditInfo = value;
}
Unfortunately, xdoclet is not including the 4 columns required ie. it is generating:
Code:
<property
name="auditInfo"
type="de.tuerkas.tmarket.hibernate.audit.AuditInfoType"
update="true"
insert="true"
column="auditInfo"
/>
instead of something along the lines of:
Code:
<property name="auditInfo" type="AuditInfoType">
<column name="LAST_UPDATED"/>
<column name="CREATED"/>
<column name="UPDATED_BY"/>
<column name="CREATED_BY"/>
</property>
I've searched through the doco's, obviously without success. If anyone could give me a pointer, that would be great.
TIA,
John