Bugs item #521571, was opened at 2002-02-22 20:24
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=521571&group_id=31602

Category: ejbdoclet
Group: cvs
Status: Open
Resolution: Fixed
Priority: 5
Submitted By: Matt (mpetteys)
Assigned to: Aslak Helles�y (rinkrank)
Summary: Remote/Local Home finders ignore types

Initial Comment:

The local and home interfaces ignore the "result-type-
mapping" fiels.  So if you have a declaration like 
this.

/**
 *
 *  @ejb:bean name="Category" type="CMP"
 *      jndi-name="ejb/Category"
 *      local-jndi-name="ejb/CategoryLocal"
 *      view-type="both"
 *      primkey-field="id"
 *  @ejb:finder signature="Category findByName
(java.lang.String name)" 
 *          unchecked="true"
 *          transaction-type="NotSupported"
 *          query="SELECT DISTINCT OBJECT(o) FROM 
Category o WHERE o.name = ?1"
 *          result-type-mapping="Remote"
 *  @ejb:finder signature="CategoryLocal findByName
(java.lang.String name)" 
 *          unchecked="true"
 *          transaction-type="NotSupported"
 *          query="SELECT DISTINCT OBJECT(o) FROM 
Category o WHERE o.name = ?1"
 *          result-type-mapping="Local"
 */

The remote and local homes have two finders with that 
same name in each of them..

Remote home..

   public Category findByName(java.lang.String name)
      throws 
java.rmi.RemoteException,javax.ejb.FinderException;
   public CategoryLocal findByName(java.lang.String 
name)
      throws 
java.rmi.RemoteException,javax.ejb.FinderException;

Local home..

   public Category findByName(java.lang.String name) 
throws javax.ejb.FinderException;
   public CategoryLocal findByName(java.lang.String 
name) throws javax.ejb.FinderException;

I would think the remote home should only have this 
finder.

   public Category findByName(java.lang.String name)
      throws 
java.rmi.RemoteException,javax.ejb.FinderException;

and the local home should only have this finder..

   public CategoryLocal findByName(java.lang.String 
name) throws javax.ejb.FinderException;


----------------------------------------------------------------------

>Comment By: Aslak Helles�y (rinkrank)
Date: 2002-04-02 19:28

Message:
Logged In: YES 
user_id=49846

It is fixed BUT:

Wouldn't it be better to throw away the result-type-mapping 
attribute and use view-type="remote|local|both" instead? 
That way we wouldn't have to dupe finders that are meant 
for both remote and local homes (as in the example above). 
Further, we'd be more consistent with other tags that use 
view-type.

Thoughts?

----------------------------------------------------------------------

Comment By: Vincent Harcq (vharcq)
Date: 2002-04-02 07:27

Message:
Logged In: YES 
user_id=125677

Aslak have done that :)

----------------------------------------------------------------------

Comment By: Vincent Harcq (vharcq)
Date: 2002-03-11 08:29

Message:
Logged In: YES 
user_id=125677

Quick todo before I forget it:
We need a view-type on ejb:finder if we want one finder to 
appear only in one of the 2 home interfaces.

----------------------------------------------------------------------

Comment By: Vincent Harcq (vharcq)
Date: 2002-03-11 08:28

Message:
Logged In: YES 
user_id=125677

OK. Spec 12.1.7. 
I will work on that.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=521571&group_id=31602

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to