You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (Commented) (JIRA)" <ji...@apache.org> on 2011/10/04 17:14:34 UTC
[jira] [Commented] (CAY-1625) Transient objects do not work in ROP
apps
[ https://issues.apache.org/jira/browse/CAY-1625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120201#comment-13120201 ]
Andrus Adamchik commented on CAY-1625:
--------------------------------------
Yes, this is known behavior of Cayenne - you can work with relationships only when you register an object with the context (ROP or server side, all the same). I suspect fixing it might be a bit more involved.
> Transient objects do not work in ROP apps
> -----------------------------------------
>
> Key: CAY-1625
> URL: https://issues.apache.org/jira/browse/CAY-1625
> Project: Cayenne
> Issue Type: Improvement
> Components: ROP
> Affects Versions: 3.1M4
> Environment: Mac 10.6
> Reporter: John Huss
> Priority: Minor
> Labels: patch
> Attachments: client template transient.txt
>
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> In addition the problem referenced in CAY-1624, transient objects don't work when using ROP because in the client template the relationship values (to-one and to-many) are null and are only initialized to non-null values when they are added to an ObjectContext. By modifying the template to initialize the relationship values to something non-null, transient objects can be worked with locally (but not still saved?). I don't know if that is the best solution, but here's basically what I did.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira