Re: i got a trouble on @ejb.finder

"Marco Mistroni" <[email protected]> Thu, 18 Jan 2007 09:15:19 +0000
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
this will do

@ejb.finder
 *         signature="java.util.Collection findAll()"
 *         query="SELECT OBJECT(a) FROM Account a"


hth
 marco

On 1/18/07, Frank Langelage <[email protected]> wrote:
>
> julying wrote:
> > i define an @ejb.finder in my class annotation like follows
> >
> >  * @ejb.finder
> >  * view-type="both"
> >  * description="find all the Account"
> >  * signature="java.util.collection findAll()"
> >  * query="SELECT OBJECT(a) FROM Account a"
> >
> >
> > according to the spec i think in my local and remote interfaces my have
> a finder method and it's return type may equal to
> > Collection type! but it generated "   public
> dev.entitybean.component.local.interfaces.AccountRemoteEntityComponentfindAll()
> >       throws javax.ejb.FinderException,java.rmi.RemoteException;"
> >
> > thanks
> Use the correct class name (first letter upper case): java.util.Collection
> .
>
> P.S.: entity beans should only have a local interface. Use google and
> search for "Session Facade".
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user