T
Thomas Lehmann
Hi,
probably a silly question. I have a class and some members will be
initialized only when calling a 'create' method. I'm using Eclipse and
there I get a warning "Found non-transient, non-static member. Please
mark as transient or provide accessors."
My question is now how to handle it correct. When I provide a setter
(assume a creation date) then I could set the creation date to another
as initialized when calling 'create'. That's why I wouldn't provide a
setter for this member. But obviously the warning want to tell me that
I might have problems with the serialization then obviously requiring
that the setter exists (and yes I'm intending to do serialization -
probably XML).
Could you please give some helpful comments on this?
probably a silly question. I have a class and some members will be
initialized only when calling a 'create' method. I'm using Eclipse and
there I get a warning "Found non-transient, non-static member. Please
mark as transient or provide accessors."
My question is now how to handle it correct. When I provide a setter
(assume a creation date) then I could set the creation date to another
as initialized when calling 'create'. That's why I wouldn't provide a
setter for this member. But obviously the warning want to tell me that
I might have problems with the serialization then obviously requiring
that the setter exists (and yes I'm intending to do serialization -
probably XML).
Could you please give some helpful comments on this?