Closed GoogleCodeExporter closed 8 years ago
Thanks for the report! The behavior you're seeing makes sense to me because
you're
calling pm.detachCopy(). detachCopy() returns a new instance of the original
object
containing all Persistent fields that were fetched while the pm was open and
all fields
that are in the default fetch group. detachCopy() has no knowledge of non-
persistent fields, so it seems reasonable that the copy wouldn't contain
transient
state. Let me verify that the rdbms plugin exhibits the same behavior, but I
suspect
it will.
As a workaround, there is a way to detach an object without calling detachCopy:
call
pm.setDetachAllOnCommit(true). This will detach your objects in-place rather
than
returning a detached copy.
Original comment by max.r...@gmail.com
on 12 Jan 2010 at 11:41
Yeah, rdbms works the same way. I'm marking as invalid but if you still
disagree I'm
happy to continue the debate.
Original comment by max.r...@gmail.com
on 12 Jan 2010 at 11:47
Original issue reported on code.google.com by
apijason...@gtempaccount.com
on 12 Jan 2010 at 10:07Attachments: