Never saw a response to this, so maybe it did not make it through. Any
ideas?
Thanx,
jeff
>>> [EMAIL PROTECTED] 10/8/2004 3:02:21 PM >>>
Does castor JDO support the notion of a component attribute, or
dependent attribute? For example, if I have a MEDICATION table that
has
the concept of a SCHEDULE to which it has a many-to-one relationship
(in
other words the SCHEDULE table is a control-table from which users can
select a code that is associated with a MEDICATION), can I map the two
tables to a single object in java:
class Medication {
private String medicationId;
prviate String name;
private String scheduleId;
private String scheduleCode;
...
}
<mapping>
<class name="edu.umich.med.careweb.entities.Medication"
identity="medicationId">
<map-to table="MEDICATION" />
<field name="medicationId" type="integer">
<sql name="MEDICATION_ID" type="numeric"
dirty="ignore" />
</field>
<field name="name" type="string">
<sql name="NAME " type="varchar" dirty="ignore"
/>
</field>
<field name="scheduleId" type="integer">
<sql name="SCHEDULE_ID " type="numeric"
dirty="ignore" />
</field>
<field name="scheduleCode" type="string">
<sql name="SCHEDULE_ID "
table="SCHEDULE" column="SCHEDULE_CODE"
/>
</field>
</class>
Or something to this effect? I want to avoid having to create a
dependent object just to support a simple string value.
jeff
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user