These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Reset POID on Delete(). Why not?
PostPosted: Wed Dec 17, 2008 12:07 pm 
Newbie

Joined: Mon Dec 15, 2008 6:59 am
Posts: 6
Hi.

Recently, I discovered that an entity ID is not reset (to unsaved-value) after Delete() execution on the entity instance (nor version field).

In my case, this prevents me from re-saving a Delete()d entity through one more call to the Save() method (undo-redo scenario).

Anybody knows why NH works this way and if resetting this value (and possibily those belonging to owned collections) has some sense?

Thanks,
Marcello.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.