Andy Jefferson wrote:
Hi,

I'd like to see others' reaction to this proposal as well.
        String getObjectState(Object pc)

I clearly think it's a good idea since that's why JPOX has it ;-)
Anything that adds more information to the user domain and more clearly defines the object states is a good thing.

+1


I agree with the principle of making the return an enum (for the "api21" jar - obviously can't be like that in the legacy jar since that has to support 1.3+). The only issue is that HOLLOW and P_NONTRANS have the same combinations of the various "isPersistent", "isTransactional", etc fields and that is why the JPOX method outputs "hollow / persistent-nontransactional"

Since we have always drawn a distinction, perhaps unwisely, between hollow and PNT, we'll just have to follow that path.

David



Reply via email to