Hi, Thanks for your reply. I notice something fishy with the deploytool, the fields are not added to the DB if I remove the bean from the application and reinstalled it again and then redeploy it, and voila ! the field that were added by deploytool is no more there, looks like there is a bug in the deploytool or something.
The same thing happened when I deployed examples from the WROX book (Professional EJB) and other samples I downloaded from the internet. Thanks again for the help. Cheers Nanik >From: "Peter" <[EMAIL PROTECTED]> >To: "Nanik Tolaram" <[EMAIL PROTECTED]> >Subject: Re: Field are being added to the DB by deploytool..weird ?? >Date: Tue, 26 Feb 2002 12:27:03 +1100 > >Hi - > >Those columns are the foreign keys of the 1:1 relationship you made. > >In the RI, the foreign key columns are made from the cmr names, the >cmp-names of the key columns in the other table etc. > >So it looks like your CustomerBean had a undirectional 1:1 relationship >(called "address") to the AddressBean. > >Remove the cmr and your tables won't have those columns.... > >\Peter. > >----- Original Message ----- >From: "Nanik Tolaram" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, February 26, 2002 11:39 AM >Subject: Field are being added to the DB by deploytool..weird ?? > > > > Hi, > > > > I was playing around with 1:1 CMR for entity bean (Customer and >Address), > > the DB is cloudscape. After deploying the bean to app server (SUN J2EE >RI > > Server) I notice the tables created by the deploytool has got field that >is > > not defined in my bean > > > > CustomerBeanTable > > ----------------- > > _address_addressid <----- not in bean > > customerID > > customerName > > > > AddressBeanTable > > ---------------- > > _reverse_address_customerID <---- not in bean > > addressName > > addressid > > > > Why is an additional field added to the table when deploying ? is this >the > > nature of an app server deployment tool ? > > > > Thanks for the help > > > > Cheers > > Nanik > > > > > > > > > > _________________________________________________________________ > > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > >=========================================================================== > > 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". > > > _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx =========================================================================== 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".
