I also wanted to know if really any other option is available? saminathan ----- Original Message ----- From: "Vishnu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 16, 2001 6:54 PM Subject: Re: setting null in the DB for primitive CMP field
> Tony, > thankz for u'r suggestion .in fact i got the same suggestion > some other person also.. > > Is that the only way (i.e.changing int to Integer)..? > (i'm bit relucatant here as i have to modify the code at lot of places) > > vish > > -----Original Message----- > From: Tony K. Lawrence [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 16, 2001 5:56 PM > To: [EMAIL PROTECTED] > Subject: Re: setting null in the DB for primitive CMP field > > > Seeing it is a primary key it cannot be null. > A primary key is used to UNIQUELY identify a row in the database. > > Tony > > -----Original Message----- > From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED]] On Behalf Of Vishnu > Sent: 16 October 2001 08:47 > To: [EMAIL PROTECTED] > Subject: setting null in the DB for primitive CMP field > Importance: High > > > 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". > > =========================================================================== > > 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". > > =========================================================================== > 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". =========================================================================== 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".
