> -----Original Message----- > From: PEARCE TOMENIUS Zina [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 1:07 AM > To: [EMAIL PROTECTED] > Subject: EJB CMP 2.0 Automatic Primary Key Generation > > Hi, > > I am using Weblogic 6.1 (sp2), with an Oracle database and > JBuilder 7 to > develop some CMP 2.0 Entity Beans. I would like the primary (single, > non-composite) keys (integer sequences) of ejbCreate calls to be > automatically generated. > > As I understand it, I can add the following to the weblogic > cmp XML file: > > <automatic-key-generation> > <generator-type>ORACLE</generator-type> > <generator-name>WFS_SEQ_TYPE_OBS</generator-name> > <key-cache-size>1</key-cache-size> > </automatic-key-generation> > > The trouble is that I get a 'ORA-01400' error ("can't insert > a null in PK > column") , when I try to create a new record. Should I have
I can't solve your problem, although I did the same thing with WebLogic 7 and it worked on the first try. However, I would point out that BEA provides a set of newsgroups on their news server for discussion of WebLogic-specific issues. They are very well-read, and responded to. =========================================================================== 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".
