Hi
I have the following
problem, I would appreciate some help.
I have declared
an abstract interface method to return a value object
[CompanyLightVO]. But when that method [getCompanyLightVO()] is called I get a
runtime exeption:
14:45:07,766 ERROR [LogInterceptor]
TransactionRolledbackLocalException in method:
public
abstract com.ttpcom.vo.CompanyLightVO
com.ttpcom.entity.CompanyLocal.getCompanyLightVO(),
causedBy:javax.ejb.EJBException: Method is not a known
CMP field accessor,
CMR
field accessor, or ejbSelect method:
methodName=getCompanyLightVO
This is how it is
declared in the CompanyEJB
/**
* @ejb.interface-method view-type="local"
* @ejb.permission role-name="user"
*/
public abstract CompanyLightVO getCompanyLightVO();
* @ejb.interface-method view-type="local"
* @ejb.permission role-name="user"
*/
public abstract CompanyLightVO getCompanyLightVO();
This is exacly how
things are shown in the samples in xdoclet.sourceforge.net So I assumed the
container would impliment the method.
However when
I impliment the method myself, as follows, I don't get any
problems
/**
* @ejb.interface-method view-type="local"
* @ejb.permission role-name="user"
*/
public abstract CompanyLightVO getCompanyLightVO();
{
CompanyLightVO result = new CompanyLightVO();
result.setId(getId());
result.setName(getName());
result.setReleaseId(getReleaseId());
result.setContactId(getContactId());
result.setHelpdeskId(getHelpdeskId());
result.setStatus(getStatus());
return (result);
}
* @ejb.interface-method view-type="local"
* @ejb.permission role-name="user"
*/
public abstract CompanyLightVO getCompanyLightVO();
{
CompanyLightVO result = new CompanyLightVO();
result.setId(getId());
result.setName(getName());
result.setReleaseId(getReleaseId());
result.setContactId(getContactId());
result.setHelpdeskId(getHelpdeskId());
result.setStatus(getStatus());
return (result);
}
Could someone
elighten me on this please?
Thanks &
Regards
Mohammed
