Discussion:
[Middlegen-user] ejbCreate for data values
Ben Litchfield
2002-12-06 16:20:02 UTC
Permalink
I am using dataobject="true" falag for the CMP plugin along with the
integer sequence pattern


It appears that it
generates incorrect ejbCreateMethods though. Here is the generated code
minus comments

public java.lang.Integer ejbCreate(org.kelut.discourse.entity.ThreadData
data) throws javax.ejb.CreateException {
setData(data);
// EJB 2.0 spec says return null for CMP ejbCreate methods.
return null;
}

public void ejbPostCreate( org.kelut.discourse.entity.ThreadData data )
throws javax.ejb.CreateException {
}

Notice there is nothing in ejbPostCreate and the ejbCreate does not create
a new id.

This is only for the ejbCreate methods that take a *Data object, the other
ejbCreateMethods appear to work fine.

Has anybody seen this problem before?

Ben Litchfield
--

Loading...