Hi All,
Question,
I have the following structure
EntityBean
|
|
*
InstrumentBean extends EntityBean
|
|
*
FundBean extends InstrumentBean
In the instrumentBean there are some methods that are generic and that I
want to expose through the business interface of my fundbean. I can to this
by the @ejb.interface-method which will generate the method on my business
interface. But he will generate it on the FundBean interface and not on the
InstrumentBeanInterface that gets extended.
Example
public abstract class InstrumentBean extends BusinessEntityBean {
.....
/**
* Sets the status
*
* @ejb.interface-method view-type="local"
*
* */
public abstract void setStatus(String instrumentStatus);
.....
}
Fundbean
...
* @ejb.bean generate="true"
* name="Fund"
* type="CMP"
* view-type="local"
* local-jndi-name="com.capco.example.instruments.server.Fund"
* schema="Instruments"
...
public abstract class FundBean extends InstrumentBean {
...
...
}
Generated code
public interface Instrument
extends com.capco.cobass.servicefw.BusinessEntity
{
}
public interface Fund
extends com.capco.example.instruments.server.Instrument
{
/**
* Returns the status
*/
public java.lang.String getStatus( ) ;
....
}
>From my opineon, it should be better that the getStatus() would be part of
the business interface of instrument and not of fund
Or am I missing something
Regards
Jan
************************************************************************
The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, please notify the sender of this email
immediately. You should not copy, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.
http://www.capco.com
***********************************************************************