Hi Everyone.
How to avoid sending a default 0 value for a field of type long ?
The problem is, i am sending an object to the web service which in turn will make an insert call to store the values of object. In the object some fields data type is long. When passing the Object via client classes.
In our DB there are some fields which will not except 0 values.
So when we don't set any values for a field that has type long,
java by default will set 0 for those fields and which will result in an exception related to database.
SO can anyone suggest how do i avoid sending 0 to DB when particular field of long type is not set ?
Any help will be appreciated !