RE: Is it possible to have the "any type" mapping as Hibernate?

2003-11-06 Thread Rice Yeh
t; elements > > > of arbitrary persistent > > > classes. > > > > > > The trick is that we store serialized Identity > > > objects as "pointers" to the > > > actual objects. > > > If you look at the DListImpl code you will see

RE: Is it possible to have the "any type" mapping as Hibernate?

2003-11-04 Thread Rice Yeh
Hi Thomas, I am not familiar with ODMG but I will go to study it. One question needs your help, is it meant that in the mapping file for this DListImpl I do not need to configure the attribute element-class-ref for collection-descriptor tag? Regards, Rice --- Mahler Thomas <[EMAIL PROTECTED]>

Is it possible to have the "any type" mapping as Hibernate?

2003-11-02 Thread Rice Yeh
Hi, I have been using OJB for some period. I am taking a project left by a partner that uses Hinbernate for persistence. So I start studying Hibernate. Hibernate has a mapping function called "any type mapping" that is defined as the follows: "The mapping element defines a polymorphic associati

To implement hashCode() or NOT when using OJB (NullPointerException)

2003-07-28 Thread Rice Yeh
Hi, Has anyone meet similar problem (NullPointerException is thrown in hashCode() function) when a un-matured persistent object is added to map or set that will invoke the persistent object's hashCode() function. The execption happens because the peristent object is un-matured, that is, some of i

Bug at line 135 of ObjectReferenceDescriptor.java

2003-07-25 Thread Rice Yeh
Hi, A bug at line 135 of ObjectReferenceDescriptor.java is found. I think it should be while (mif.isInterface()) instead of if (mif.isInterface()) Regards, Rice __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://siteb

How to contribute code? [Attaching files]

2003-07-21 Thread Rice Yeh
Hi Armin, Attached are two files. One is PersistentFieldImpl. It has passed NestedFieldsTest test with path separator '/' instead of '::'. The other is SunOneTransactionManagerFactory.java. Ps, I find I cannot attach files from my yahoo mail. So I send this message from another mail. Regards

[Re-post] How to contribute code? [SunOneTransactionManagerFactory contributed]

2003-07-21 Thread Rice Yeh
--- Rice Yeh <[EMAIL PROTECTED]> wrote: > Hi, > Attached is transaction manager factory > implementation I used for SunOne Ap7. > Just wonder how to contribute code? Is the way I > am > doing right? Or should I post it to dev mailing >

How to contribute code? [SunOneTransactionManagerFactory contributed]

2003-07-21 Thread Rice Yeh
Hi, Attached is transaction manager factory implementation I used for SunOne Ap7. Just wonder how to contribute code? Is the way I am doing right? Or should I post it to dev mailing list? Regards, Rice - To unsubscribe, e-ma

Suggestion: Refactor FieldConversion to enhance anonymous fields

2003-07-20 Thread Rice Yeh
Hi, Here I have a lot of thinking about refactoring FieldConversion interface to enhance anonymous fields: 1. Since anonymous fields have no corresponding java fields, their values must come from some other places. As I know, it can come from a. referece to other object (foreign key) b. ref

Patch for supporting Interface when traveling instance path of a nested field

2003-07-18 Thread Rice Yeh
Hi Thomas, I have wirten a PersistentField interface implemntatin called "PersistentFieldImp" which suports interface when traveling an instance path of a nested field. Its function is described by the following javadoc: --- PersistentFieldImp

suggestion on ClassHelper

2003-06-19 Thread Rice Yeh
Hi, When I read OJB source code, I find a ClassHelper class, but it seems that its usage seems not wide. What I mean is that there are many codes in OJB doing object instantation do not use it but have their own. There are ways to instantiate a new object in java. The simplest one is Class.newIns

Re: Can objConcretClass be anonymous now?

2003-06-15 Thread Rice Yeh
ll us about the > results! > > cheers, > Thomas > > Rice Yeh wrote: > > Hi all, > > On inheritance mapping to one table, a field > > 'ojbConcretClass' is need in AB abstract class. Is > it > > still needed sinc

Can objConcretClass be anonymous now?

2003-06-15 Thread Rice Yeh
Hi all, On inheritance mapping to one table, a field 'ojbConcretClass' is need in AB abstract class. Is it still needed since we can treat this field as anonymous? Regards, Rice __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -

RE: Does reference id intrusion to the domain model necessary?

2003-02-27 Thread Rice Yeh
ded to have this intrusion to OJB internals > simple. > I don't think it's a *real* problem. those extra > attributes can be > effectively hidden from application developers. > > cheers, > Thomas > > > > -Original Message- > > From: Rice

Does reference id intrusion to the domain model necessary?

2003-02-27 Thread Rice Yeh
Hi, I just read discussion on tss website http://www.theserverside.com/home/thread.jsp?thread_id=18066&article_count=33#75045 I find that ojb has similar problem "reference id intrusion to the domain model" for reference mapping. For example, in Article we have to introduce another field productG

Re: How to handle java.util.Map

2003-02-27 Thread Rice Yeh
Hi, I usually use Map when a object in collection is needed to be retrieved by key and the collection is too big to scan the collection to get the wanted object specified by key. Regards, Rice --- Christopher C Worley <[EMAIL PROTECTED]> wrote: > Rice, > > I have not. It may be common, I was

Re: How to handle java.util.Map

2003-02-27 Thread Rice Yeh
Hi, I do not really understand what you want to ask. I just have a class with a java.util.Map field and try to map it. Do people NOT use java.util.Map in object modeling? Regards, Rice --- Christopher C Worley <[EMAIL PROTECTED]> wrote: > Rice, > > I am curious to know when would you need to

How to handle java.util.Map

2003-02-27 Thread Rice Yeh
Hi, In OJB document, I can find information on how to handle collection mapping. However, I can not find information on how to handle java.util.Map. Is it supported? Regards, Rice __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, mor

Re: How to map embedded value object?

2003-02-25 Thread Rice Yeh
"address" of type > Adress, > the mapping for the "street" attribute of "address" > would look like follows: > > name="adress->street" > column="ADR_STREET" > jdbc-type="VARCHAR"

Re: How to map embedded value object?

2003-02-24 Thread Rice Yeh
money.amount" > column="moneyAmount" > jdbc-type="LONG" > /> > > > > and > > > > name="money.currency" > column="moneyCurrency" > jdbc-type="VARCHAR" >

Re: easy 1-1, 1-m association and inheritance

2003-02-24 Thread Rice Yeh
Hi, Have this modification already checked into cvs repository? Regards, Rice --- "TINE Houari (OBJECTIVA)" <[EMAIL PROTECTED]> wrote: > > Hi, > > I have modied the source code of OJB to enable > mapping 1:1 and 1:m > association without adding variable instance (that > model fk) in business

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

Re: JDO tutorial build error

2003-02-09 Thread Rice Yeh
itory_user entry to > make it work. > > cheers, > Thomas > > Rice Yeh wrote: > > Hi, > > While building OBJ tutorial for JDO API, I get > the > > following error, what is worng? > > > > prepare-tutorials: > > > > enhance-jdori:

Re: Where is jdori-enhancer.jar in JDO tutorial?

2003-02-09 Thread Rice Yeh
things about the JDO RI. > The reference enhancer is contained in the finally > shipped JDO > specification, but not in the JDORI itself. > > The best thing will be to load down the spec as > well. > > cheers, > Thomas > > Rice Yeh wrote: > > Hi, > >

JDO tutorial build error

2003-02-09 Thread Rice Yeh
Hi, While building OBJ tutorial for JDO API, I get the following error, what is worng? prepare-tutorials: enhance-jdori: BUILD FAILED file:D:/coffee/jakarta/jakarta-ojb-0.9.9/build.xml:901: Warning: Could not find file D:\coffee\jakarta\jakarta-ojb-0.9.9\src\jdori\org\apache\ojb\tutorial5\Prod

Where is jdori-enhancer.jar in JDO tutorial?

2003-02-09 Thread Rice Yeh
Hi, I followed the instruction on tutorial about jdo, wherein it is stated to download jdori from sun and get three jars, one of them is jdori-enhancer.jar. But I can NOT find this one but the other two jars are ok. In jdori.jar, there is a package 'enhancer'. Should I extract it out as another j