Title: Re: [castor-dev] Premitive Field - int when not set is getting unmarshalled as 0
Thanks for the information, I am now using Integer instead of int.
 
-Mothy
 

From: Gregory Block [mailto:[EMAIL PROTECTED]
Sent: Thu 8/11/2005 6:44 AM
To: [email protected]; Mothy Sundararajan (WT01 - FINANCE - SECURITIES)
Cc: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Premitive Field - int when not set is getting unmarshalled as 0

Primitive fields always have a value - zero, for example, which 
you've noticed.

Use an Integer, set it to null, and the field is empty.  Use an int, 
set it to 0, and the field has a 0 in it.

On 11 Aug 2005, at 02:52, <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> wrote:

> Hi,
>
> While unmarshalling if the values for premitive fields are not set 
> then it is unmarshalled as <number>0</number>.
>
> I don't want the node to appear itself if the values are not set. 
> How to set this in castor.
>
> Thanks and Regards
> -Mothy


-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------



Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

Reply via email to