How to create .ser files for ejbs . How to deserialize it and extract the information from it Jenitha > -----Original Message----- > From: Claudio Miranda [SMTP:[EMAIL PROTECTED]] > Sent: Friday, December 08, 2000 9:56 PM > To: [EMAIL PROTECTED] > Subject: Re: Primary key auto number (identity) column > > See the archives for this topic (lot of thread) > and theserverside.com (patterns) > > -- > Claudio Miranda > ___________________________________ > > > Andi Wijaya wrote: > > > > Dear Friend, > > > > I have tables (SQL Server 7) with a primary key field, set to type > > int - auto number (identity in SQL Server), which will be filled > > automatically with a unique increasing number everytime a > > new record is added. > > > > The question is how can I include the field to a CMP bean ? > > If I set the variable in "ejbcreate" method than it will be > > saved to database (which will be rejected because it is supposed > > to be handled by the database server itself). > > On the other hand, I still want the bean to be able to retrieve the > > value from that field as well as use the "findByPrimaryKey()" method. > > > > Has anyone ever face the some problem ? Would you share a solution ? > > > > Thanks in advance, > > Andri > > ========================================================================== > = > 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".
