Consider the following classes...
class A {
int id;
String name;
B bObject;
....
}
class B {
int g_value1;
...
public int getValue1() {
return g_value1;
}
public void setValue1(int val) {
g_value1 = val;
}
...
}
Which are mapped as follows...
<mapping>
<class auto-complete="false" name="A" access="shared" identity="id">
<description>Default mapping for class com.wdw.dd.cc.database.Language</description>
<map-to table="TBL_A" />
<field required="true" name="id" type="integer">
<sql name="id" dirty="check" type="integer" read-only="false"/>
</field>
<field name="name" type="string">
<sql name="name" dirty="check" type="varchar" read-only="false"/>
</field>
<field name="B.g_value1" type="int">
<sql name="value1" dirty="check" type="int" read-only="false"/>
</field>
....
</class>
</mapping>
How can I specifiy the get / set methods for value1? Do I need to a mapping for class B and specify them there? Or is it just not possible? Thanks in advance for your help.
Vincent Techeira
