Asgeir Østerhus
2002-06-24 10:24:02 UTC
Hello,
When running middlgen (CVS version from 24.06) it makes the following ejbCreate / ejbPostCreate:
public java.lang.Integer ejbCreate( java.lang.Integer idDqabsextposacc, java.lang.String measname, java.lang.String identcode, java.lang.String measdesc, java.lang.String evalmethdesc, gdkdbtest.ejb.interfaces.EvalmethtypecdObjLocal evalmethtypecdObj, gdkdbtest.ejb.interfaces.CitationObjLocal citationObj, gdkdbtest.ejb.interfaces.CitationObjLocal citationObj, gdkdbtest.ejb.interfaces.DataqualObjLocal dataqualObj ) throws javax.ejb.CreateException {
// Set CMP fields
setIdDqabsextposacc(idDqabsextposacc);
setMeasname(measname);
setIdentcode(identcode);
setMeasdesc(measdesc);
setEvalmethdesc(evalmethdesc);
// EJB 2.0 spec says return null for CMP ejbCreate methods.
return null;
}
public void ejbPostCreate( java.lang.Integer idDqabsextposacc, java.lang.String measname, java.lang.String identcode, java.lang.String measdesc, java.lang.String evalmethdesc, gdkdbtest.ejb.interfaces.EvalmethtypecdObjLocal evalmethtypecdObj, gdkdbtest.ejb.interfaces.CitationObjLocal citationObj, gdkdbtest.ejb.interfaces.CitationObjLocal citationObj, gdkdbtest.ejb.interfaces.DataqualObjLocal dataqualObj ) throws javax.ejb.CreateException {
// Set CMR fields
setEvalmethtypecdObj(evalmethtypecdObj);
setCitationObjByIdentauth(citationObjByIdentauth);
setCitationObjByEvalproc(citationObjByEvalproc);
setDataqualObj(dataqualObj);
}
And since there is multiple parameters named citationObj, and ejbPostCreate thinks they are called citationObjByIdentauth / citationObjByEvalproc this does not work of course.
I guess there is something not quite right about $allCreateSignature in entity-cmp-20.vm.
Any idea about what to do to fix this would be great.
8-)
Asgeir
When running middlgen (CVS version from 24.06) it makes the following ejbCreate / ejbPostCreate:
public java.lang.Integer ejbCreate( java.lang.Integer idDqabsextposacc, java.lang.String measname, java.lang.String identcode, java.lang.String measdesc, java.lang.String evalmethdesc, gdkdbtest.ejb.interfaces.EvalmethtypecdObjLocal evalmethtypecdObj, gdkdbtest.ejb.interfaces.CitationObjLocal citationObj, gdkdbtest.ejb.interfaces.CitationObjLocal citationObj, gdkdbtest.ejb.interfaces.DataqualObjLocal dataqualObj ) throws javax.ejb.CreateException {
// Set CMP fields
setIdDqabsextposacc(idDqabsextposacc);
setMeasname(measname);
setIdentcode(identcode);
setMeasdesc(measdesc);
setEvalmethdesc(evalmethdesc);
// EJB 2.0 spec says return null for CMP ejbCreate methods.
return null;
}
public void ejbPostCreate( java.lang.Integer idDqabsextposacc, java.lang.String measname, java.lang.String identcode, java.lang.String measdesc, java.lang.String evalmethdesc, gdkdbtest.ejb.interfaces.EvalmethtypecdObjLocal evalmethtypecdObj, gdkdbtest.ejb.interfaces.CitationObjLocal citationObj, gdkdbtest.ejb.interfaces.CitationObjLocal citationObj, gdkdbtest.ejb.interfaces.DataqualObjLocal dataqualObj ) throws javax.ejb.CreateException {
// Set CMR fields
setEvalmethtypecdObj(evalmethtypecdObj);
setCitationObjByIdentauth(citationObjByIdentauth);
setCitationObjByEvalproc(citationObjByEvalproc);
setDataqualObj(dataqualObj);
}
And since there is multiple parameters named citationObj, and ejbPostCreate thinks they are called citationObjByIdentauth / citationObjByEvalproc this does not work of course.
I guess there is something not quite right about $allCreateSignature in entity-cmp-20.vm.
Any idea about what to do to fix this would be great.
8-)
Asgeir