logo       


Re: How to generate custom query method: msg#00016

Subject: Re: How to generate custom query method
Hi

It should be in cmp20-Card-class-code.txt

Tim
On Fri, 2004-09-10 at 09:37, Dietmar.Schweiger@xxxxxxxxxxxx wrote:
> Hi,
> 
> I`m trying to add a EJB query method to a Entity Bean (here for Table
> "Card"), that counts the number of entries (here cards).
> I have added the following "code"
>  /**
>  * @ejb.select
>  *    result-type-mapping="Local"
>  *    query="SELECT COUNT(*) FROM Card,  WHERE State_Id = ?1"
>  * 
> **/
> public abstract long countCards(long ErrorId);
> 
> 
> 
> in the file "cmp20-Card-class-comments.txt" within the merge
> directory. 
> Midlegen copies this code into the CardBean.java file, but xdoclet
> then fails to execute (<<The Bean class is needed but not found in
> Xdoclet source path for interface
> com.gd.ecard.dao.interfaces.CardLocal>>)
> 
> What am I doing wrong?
> I would be grateful for any help.
> Thanks.



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php


Free Magazines
Cisc o News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and so lutions to enable the business.
subscribe

Systems Management News , the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happenin g in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Search:
Java, servers, webhosts, VoIP...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo