db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Jefferson <a...@jpox.org>
Subject Re: makePersistent detached instance deleted on database
Date Sat, 11 Mar 2006 02:53:31 GMT
>I'm afraid this calls out for good old attachCopy(), only with an 
>additional parameter:

-1
attachCopy() was removed for a good reason - simplification.
There are many ways of allowing multiple persist modes. You could easily have a
PMF property and associated PM setters/getters for example for this parameter.
All you want is the implementation to check if a detached instance exists in the
datastore when persisting it, and if not then create it - a simple parameter is
enough.

--
Andy

Mime
View raw message