I am having a problem using an Auto-Number with the ejbCreate() method
for Entity Beans. The Key Field (ProductID) is a key and Auto-Number
(OR Identity in SQL Server). I added an extra ejbCreate() method and
took out the productID parameter but there is a problem with it.
The code is below...
Thanks,
John.
public ProductPK ejbCreate(int productID, String name, String description,
int qty, BigDecimal price, String picture) {
this.productID = productID;
this.name = name;
this.description = description;
this.qty = qty;
this.price = price;
this.picture = picture;
return null;
}
public ProductPK ejbCreate(String name, String description, int qty,
BigDecimal price, String picture) {
this.name = name;
this.description = description;
this.qty = qty;
this.price = price;
this.picture = picture;
return null;
}
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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".