Hi All,
I have read that the ejbCreate method of an entity bean's return type must be the type of the primary key of the bean. In many examples I have seen a return value of null.
Why is this exactly. If we return null, how does the container know what is the primary key of the bean?
example:
public Integer ejbCreate(
String name, String location) {
this.setName(name);
this.setLocation(location);
// Return null..!!! huh??
return null;
}
Apparently it is correct to return a null from ejbCreate..!
Little bit lost as to why this could be. Thanx for your help.
James.
[ October 19, 2004: Message edited by: James Turner ]