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".
