Re: How to map embedded value object?

2003-02-25 Thread Rice Yeh
Hi Thomas, Thank you for your answer. But I continue my question. Is it possible to have this embbeded value to refer back the master object. For example, B (as the Address class) is the embeded object of A (Party class as example). But B has a field referring to A. Is this kind of mapping poss

Re: How to map embedded value object?

2003-02-24 Thread Robert r. Sanders
Search the mailing list archives for "nested field". (http://archives.apache.org/eyebrowse/SearchList?listId=&listName=ojb-user%40jakarta.apache.org&searchText=nested+field&defaultField=body&Search=Search) I had it working with v. 0.9.8 using a patch from the lists, but my understanding was tha

Re: How to map embedded value object?

2003-02-24 Thread Thomas Mahler
You have to tell OJB to use a PersistenField implementation supporting this in OJB.properties first, as it is not yet implemented in the default implementation: PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentNestedFieldMaxPerformanceImpl if your class has an attribute

Re: How to map embedded value object?

2003-02-24 Thread Rice Yeh
Hi Robert, Which version does this function start? I can NOT find any documentation. Regards, Rice --- "Robert r. Sanders" <[EMAIL PROTECTED]> wrote: > 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

Re: How to map embedded value object?

2003-02-24 Thread Robert r. Sanders
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 column="moneyAmount" jdbc-type="LONG" /> OR column="moneyAmount" jdbc-type="LONG" /> and

How to map embedded value object?

2003-02-24 Thread Rice Yeh
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