Ok...In CMP2.0 Entity bean, the spec says, we return null, so we return null.
But what happens if I return the primary key object itself. In most cases, I think I have access to the primary key object in ejbCreate() method.
example :
public
String ejbCreate(String key) {
setID(key);
//return null;
return key;
}
Any comments?
One of the CMP examples in Ed Roman's book has similar code.
I wonder if it is right. (7.6, p:190 and p:191 of the pdf file, Chapter 7(CMP))