Hello all,

I have two CMP-entity-beans: TradingMechanism and Auction. The associated primary key classes are TradingMechanisPK and AuctionPK. Auction extends TradingMechanism as well as AuctionPK extends TradingMechanismPK. The only primary key field is a long number TradingMechanismCode. When generating the classes using ant and xdoclet, the AutionData generated class tries to overwrite the method TradingMechanismPK getprimaryKey() from TradingMechanismData (it's superclass), but changes the return type to AuctionPK. Javac fails to compile and gives the message "getPrimaryKey() in AuctionData cannot override getPrimaryKey() in TradingMechanismData; attempting to use incompatible return type". I am using the tag @ejb.pk class="com.smartprice.TradingMechanismPK" generate="true" unchecked="true" at TradingMechanism and @ejb.pk class="com.smartprice.AuctionPK" generate="true" unchecked="true" extends="com.smartprice.TradingMechanismPK" at Auction. Can anyone help me?

Regards,

Leorazuk




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to