"Wes Biggs" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Would it be cleaner to not allow transient instances to be included in 
> attachCopy() graphs at all?  Sounds that way to me. 
> 
No, I'd like to continue to allow transient instances to be included in
attachCopy graphs.  I'd like to **add** the ability for detached objects to
be included in makePersistent graphs.

This use case fell out very naturally for me while working on a website that
uses detached objects.  I ended up with a transient User object referencing
a detached Country object, and, of course, when I called
pm.makePersistent(user), I got an JDOUserException as I should have, per the
spec as it stands right now.

--matthew


Reply via email to