-
1. Re: feature/bug in EntityContainer.findLocal
hezekiel Aug 19, 2002 5:02 AM (in response to hezekiel)Something from the specs (EJB 2.1 final draft):
10.6.10
--------------------------------------------------
//This clause allows inheritance for interfaces:
The remote home interface is allowed to have superinterfaces. Use of interface inheritance is subject to the RMI-IIOP rules for the definition of remote interfaces.
//And this practically takes it away :
The return type for a find method must be the entity bean's remote interface type (for a single-object finder), or a collection thereof (for a multi-object finder).
-------------------------------------------------
Or how should one interpret this? Is the return type from a finder method the entity bean's remote interface type if it is it's supertype? Is the example from the previous post against the spec? If so, the specification sucks... Please help me out here... if I can't use interface inheritance with the entity beans I'm forced to write (number of different beans * handling logic) more code that with the current solution.