wn, Mike [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 30, 2004 9:29 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Null values and calling a setter.
>
> I think I understand you but here's the question. Why would
> you want your setter called for a null value?
Hi Mike,
I need to represent the following cases:
a) the property has been set to a "normal" value
b) the property has not been set by the "bean client" (or also the
"bean provider")
c) the property has been set to a null value (not too different from
a) because null is also a value, isn't
d want it to be called even when the value is null?
-Original Message-
From: Adrian Perez Jorge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 11:18 AM
To: [EMAIL PROTECTED]
Subject: Null values and calling a setter.
Hi all.
Let's imagine a client sends a bean, and
Hi all.
Let's imagine a client sends a bean, and let's imagine one of the bean
properties is null.
Now, at the server side (in reality in both sides), the bean is a
value object and the setter is like the following:
public MyBean() {
...
myPropertyHasBeenSet = false;