Hi,
as anyone used the Xdoclet OJB-module for nested objects? I've searched the
documenation and couldn't find any signs of how it could be done. To give you an
example, lets use a Period class, consisting of a startDate and an endDate-field.
Now, if my persistent class uses a Period class as a nested object, ideally I would
like to tag my class like this:
/**
[EMAIL PROTECTED] table="SOME_TABLE"
*include-inherited="true"
*/
public class SomeClass extends AbstractPersistentObject {
/**
* @ojb.field name="period::startDate" column="START_DATE" jdbc-type="DATE"
*
conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"
* @ojb.field name="period::endDate" column="END_DATE" jdbc-type="DATE"
*
conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"
*/
private Period period;
public Period getPeriod() {
return period;
}
public setPeriod(Period period) {
this.period = period;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]