In
EJB 2.0(CMP) can the return type needs to be
String, Integer etc or can this be an object class like custPK(assumming we have this defined as below). To me seems this will be illegal as return type needs to be declared in DD.
The reason for this question is that I have some old code (EJB 1.1)that runs into problem when running in OC4J new version(EJB 2.0) that is suppoSed to be backwarD compAtible and I am thinking it is not.
Please confirm.
-------------------------------------
import java.io.Serializable;
public class CustPK implements Serializable
{
public String sEventId;
public CustPK()
{
}
public CustPK(String _eventid)
{
this.sEventId = _eventid;
}
public int hashCode()
{
// Add custom hashCode() impl here
return super.hashCode();
}
public boolean equals(Object other)
{
// Add custom equals() impl here
return super.equals(other);
}
}
[ October 06, 2005: Message edited by: Raj Puri ]