Make the CMP field a java.lang.Integer.

--Victor

Vishnu wrote:

> Hi,
>
> I have a CMP field in my Entity bean which is of primitive type , say
> int
>
> It is mapped to Database Column which is of type, say NUMBER(18)
>
> How to set null in the DB Column?
>
> When I ignore to call set method in ejbCreate it sets the default value
> (i.e 0)
>
> in the data base ...
>
> thankz in advance
>
> Vishnu
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

--
-------------------------------------------------
"I've figured out the difference between scientific
knowledge and business knowledge. Scientific knowledge
depends on facts, logic, and the rigorous testing of ideas
in the laboratory and the field. Business knowledge
depends on the assertion of pet biases with great
confidence and exorbitant billing rates." --Bob Lewis

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to