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