Hi all,

I have a problem with the following scenario:

Suppose I have a class A which contains a collections of Bs, but the
element class of this Collection is declared to be a user-defined Proxy
type (in other words, the class descriptor for B has a user-defined
proxy specified for it). Also suppose the relation between As and Bs is
m:n. Thus when retrieving an instance of A, I also get with it an
associated Collection of proxies to the Bs.

Assuming use of the PB (ie auto-update defaults to 'false') I now change
something in the A instance (does not matter what), then call pb.store
on A to register the change. Looking at the code the 'store()' method
correctly checks for a top-level Proxy - however when we get to the
'storeCollections' method, and then the call to 'storeCollectionObject'
there is NO check for a Proxy in the 'storeCollectionObject' method.
This is caught in the top-level 'store' method *but only* if auto-update
is set to 'true' - otherwise the method drops out and proceeds to the
'storeMtoNImplementor' call, which first attempts to find a Proxy class
descriptor and then throws a ClassNotPersistenceCapableException.

Have I read the code correctly here? Has anyone else experienced this?
This has cropped up with our application on OJB 0.9.7, but I have
checked the rc5 code and the relevant parts look pretty much the same.

Comments welcome.

Cheers,

Chris


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

Reply via email to