cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lachlan Deck <lachlan.d...@gmail.com>
Subject delete new --> transient?
Date Thu, 26 Nov 2009 01:33:09 GMT
Hi there,

just wondering why when deleting a new object that its status is being set to PeristenceState.TRANSIENT
rather than DELETED?

@see ObjectContextDeleteAction#deleteNew(Persistent)
It also doesn't turn up in context.deletedObjects

So this all seems to make it more difficult to determine the state of an object.

Regardless of the rationale - what's the recommended way of determining if an object is deleted
within the context?
Thanks.

with regards,
--

Lachlan Deck


Mime
View raw message