New Posts New Posts RSS Feed: using AddEntity in the EntityServerSaveInterceptor in FAKESTORE mode doesn't generate a temporary ID
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

using AddEntity in the EntityServerSaveInterceptor in FAKESTORE mode doesn't generate a temporary ID

 Post Reply Post Reply
Author
kdev View Drop Down
Groupie
Groupie
Avatar

Joined: 03-Jan-2013
Posts: 83
Post Options Post Options   Quote kdev Quote  Post ReplyReply Direct Link To This Post Topic: using AddEntity in the EntityServerSaveInterceptor in FAKESTORE mode doesn't generate a temporary ID
    Posted: 03-Apr-2013 at 9:43am
Hi,

If a create a new entity in the EntityServerSaveInterceptor and add it to the EntityManager using AddEntity it generates a temporary ID in the Release or Debug mode.
When I use the Fakestore mode, after adding the entity to the EntityManager, the ID stay to 0. 

Is this a limitation or a bug ?


In this post http://www.ideablade.com/forum/forum_posts.asp?TID=3918&title=cannot-get-result-of-a-parametrized-named-query-using-fakestore-mode I had a similar problem, the parametrized query weren't at that time supported by the Fakestore mode.
Are there a lot of functions that aren't supported in this mode ? if so maybe you should advertise it because seeing this feature in Cocktail, anyone can think any code will work in both modes (debug/release or fakestore) and that's actually not true.

Regards
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 04-Apr-2013 at 4:49pm
kdev,

This issue is a bug.

The fix will be available in the next release of DevForce2012.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down