> 
> Hi! Sry for my English.

No worries. Your message is very is clear.

> Is this normal, that the objects with NEW state (not committed yet) are not
> returned by performQuery method?

Correct, performQuery only returns objects from DB. So this is expected, and 
you will have to deal with NEW objects on your own.

Andrus


On Nov 6, 2012, at 4:55 PM, Aleksey V. Katorgin <[email protected]> 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.
> 
> 
> Thanks.
> 
> -- 
> Aleksey V. Katorgin,
> Sr. developer, architect
> 
> Russia, Chelyabinsk
> cell: +79085792691
> skype: aleksey_katorgin

Reply via email to