> -----Original Message-----
> From: Girish R [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 11, 2000 11:35
> To: [EMAIL PROTECTED]
> Subject: Problem with Entity bean
>
>
> Hi folks
>
> I have problem inserting null into a Number column of a table
> in my database
> using Entity bean
> I have a nullable column by name ContactNo in my table which
> is a foreign
> key. So when I invoke create method of my entity bean without
> assigning any
> value to the CMP field corresponding to this column , I get
> SQL Exception
> owing to the foreign Key relationship as the default value of
> this field is
> 0. How do I insert null into this column when
> required , using Entity bean.
>
> Urgent Help required as this is a major problem in my project=20
>
Do not use primitive types (i.e. int) for the CMP fields.
Instead, use the object wrappers (i.e. java.lang.Integer).
- Avi
--
s/\be(\w+)/e-\1/g;
===========================================================================
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".