cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Sánchez (JIRA) <j...@apache.org>
Subject [jira] [Created] (CAY-1777) Object context's localobject method, unexpected results on new object
Date Wed, 05 Dec 2012 23:41:59 GMT
Manuel Sánchez created CAY-1777:
-----------------------------------

             Summary: Object context's localobject method, unexpected results on new object
                 Key: CAY-1777
                 URL: https://issues.apache.org/jira/browse/CAY-1777
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 3.0.1
         Environment: Ubuntu 12.04
            Reporter: Manuel Sánchez
            Priority: Minor


A just new persistent object, persitence status = NEW, gets COMMITTED if you change it from
object context.

MyClass o= objectContext.newObject( MyClass.class)
-> o persistence status= NEW
o2= objectContext2.localObject( o.getObjectId(), o)
-> o2 persistence status= COMMITTED 

It seems more suitable to return o2 in NEW persistence status.
I know this is a consequence of some bad design, i changed it. Just trying to help the framework
gives the expected results.

Thanks for you great work, i enjoy using CAY!




 



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message