I believe that I was able to get something like the following to work. I don't have the exact file avaliable right now so this is my best shot....

<field-descriptor name="money->amount"
column="moneyAmount"
jdbc-type="LONG"
/>


OR

<field-descriptor name="money.amount"
column="moneyAmount"
jdbc-type="LONG"
/>




and



<field-descriptor name="money.currency"
column="moneyCurrency"
jdbc-type="VARCHAR"
/>





Rice Yeh wrote:


Hi,
As stated in Martine Flower's artice
(http://martinfowler.com/eaaCatalog/embeddedValue.html)
"Many small objects make sense in an OO system that
don't make sense as tables in a database. Examples
include currency-aware money objects and date ranges.
Although the default thinking is to save an object as
a table, no sane person would want a table of money
values.". In OJB, how these small objects are mapped
to the same table of their master object?

Regards,
Rice


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
   Robert r. Sanders
   Chief Technologist
   iPOV
   www.ipov.net



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to