On 7/11/12 12:55am, Aleksey V. Katorgin wrote:
Hi! Sry for my English.
Is this normal, that the objects with NEW state (not committed yet) are not
returned by performQuery method?
I have an scenario in my project where some entities are updated and some
entities are created but not committed (because I need to cancel it
sometimes by user action). And on the next step I want to work with both
types of this entities with the same way. Of course I can use regular java
list for storing these objects but logic of the app would be simple if I
will use Queries.
Yes, it is a shame that Cayenne doesn't have a helper method to quickly merge
those into your query results, but you will need to iterate through your
context and find all new objects there. Not too hard.
Andrus, I wonder if there is some way to make this common use case easier?
Ari
--
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A