i have 2 ejb entities, A and B. B extends A, and are defined as follows:
public abstract class A extends BaseEntityBean implements EntityBean
{
private int usageType;
private String value;
/**
* @ejb.interface-method
*/
public abstract void setValue( String value );
/**
* @ejb.interface-method
*/
public abstract void setUsageType( int usageType );
/**
* @ejb.interface-method
* @ejb.persistence column-name="value"
*/
public abstract String getValue( );
/**
* @ejb.interface-method
* @ejb.persistence column-name="usageType"
*/
public abstract int getUsageType( );
}
public abstract class B extends A implements EntityBean
{
private int platformType;
/**
* @ejb.interface-method
* @ejb.persistence column-name="platformType"
*/
public abstract int getPlatformType( );
/**
* @ejb.interface-method
*/
public abstract void setPlatformType( int platformType );
}
the generation seems to work fine, but i get a compile error on the
generated class, *BCMP*. here's the generated code where the error is occuring:
public AValue getAValue()
{
AValue = new AValue();
try
{
AValue.setPlatformType( getPlatformType() ); <-- error:
this method is only defined in B
AValue.setValue( getValue() );
AValue.setUsageType( getUsageType() );
AValue.setId( getId() );
}
catch (Exception e)
{
throw new javax.ejb.EJBException(e);
}
return AValue;
}
should this be appearing in BCMP's class, as BCMP already contains the
below method, which is ok.
public BValue getBValue()
{
BValue = new BValue();
try
{
BValue.setPlatformType( getPlatformType() );
BValue.setValue( getValue() );
BValue.setUsageType( getUsageType() );
BValue.setId( getId() );
}
catch (Exception e)
{
throw new javax.ejb.EJBException(e);
}
return BValue;
}
any advice would be appreciated! thank you!
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
