Code:
public class Phone {
...
private String area;
private String switch;
private String number;
...
}
Code:
<class name="Person " table="PERSON">
...
<component name="homePhone" class="Phone">
<property name="area" column="HOME_PHONE_AREA_CODE"/>
<property name="switch" column="HOME_PHONE_SWITCH"/>
<property name="number" column="HOME_PHONE_LINE_NUMBER"/>
</component>
<component name="cellPhone" class="Phone">
<property name="area" column="CELL_PHONE_AREA_CODE"/>
<property name="switch" column="CELL_PHONE_SWITCH"/>
<property name="number" column="CELL_PHONE_LINE_NUMBER"/>
</component>
<component name="workPhone" class="Phone">
<property name="area" column="WORK_PHONE_AREA_CODE"/>
<property name="switch" column="WORK_PHONE_SWITCH"/>
<property name="number" column="WORK_PHONE_LINE_NUMBER"/>
</component>
...
</class>
Please, don't forget to rate.