Hi,

I'm still having no success with this...I think there's a bug maybe?

(I tried creating a session-beans.xml in my mergedir and this *was* picked
up and placed in the ejb-jar.xml file so I know at least that the location
of my mergedir is ok.)

But my finders are not picked up....
>From ejb-body.xdt I can see
          <XDtMerge:merge file="ejb-finders-{0}.xml">
          <!-- Write a file named ejb-finders-<XDtClass:className/>.xml if
you want to define extra finders. -->

I edited ejb-body.xdt and hardcoded the name of my file,
ejb-finders-FunctionBean.xml
and it worked, so all I can think is that maybe the value of:
  {0}
and the value of
  <XDtClass:className/>
aren't pointing at the same thing.

Has anyone got this to work?

Thanks

Chris
-=-=-=

-----Original Message-----
From: Shaw, Chris
Sent: 09 July 2002 13:38
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] [Finders] Adding finders...


Hi

I'm trying the finders merge point and having no joy at the moment:
My build.xml file points ejbdoclet to my mergedir as follows:
        <ejbdoclet destdir="${gen.java.dir}/main"
                mergedir="${project.home}/src/xdoclet/finders"

In this directory I have a file called:
        ejb-finders-FunctionBean.xml (my bean is called FunctionBean.java)
which contains the following:
    <query>
        <query-method>
            <method-name>findByName</method-name>
            <method-params>
                <method-param>java.lang.String</method-param>
            </method-params>
        </query-method>
        <result-type-mapping>Local</result-type-mapping>
        <ejb-ql><![CDATA[SELECT DISTINCT OBJECT(o) FROM Function o WHERE
o.functionName = ?1]]></ejb-ql>
     </query>

But the ejb-jar.xml file does not include my entry, all it does include is
the following line:
   <!-- Write a file named ejb-finders-FunctionBean.xml if you want to
define extra finders. -->

Does this functionality work yet? or have I missed a step out?

Thanks

Chris
-=-=-=



Em Ter, 2002-06-18 �s 05:30, Shaw, Chris escreveu:

> I'm trying to do a similar thing, but without MiddleGen.
>
> My EJB's are auto-generated from an XML Schema, and the XML Schema has no
> knowledge about any potential finders....
> If I then put the finder in the Java code afterwards it will be lost if
the
> auto-generation is re-run.

Rejoice, for I just added a new merge point for finders. Get xdoclet
from CVS and define a file named ejb-finders-{0}.xml ({0} being your
bean name) and put there your <query/> elements.

--
Ja ne,
   Pazu
   mailto: [EMAIL PROTECTED]

Anime Gaiden: de f�s para f�s, sempre.


Any e-mail message from the European Central Bank (ECB) is sent in good
faith but shall neither be binding nor construed as constituting a
commitment by the ECB except where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above.
Any unauthorised disclosure, use or dissemination, either in whole or in
part, is prohibited.
If you have received this e-mail in error, please notify the sender
immediately via e-mail and delete this e-mail from your system.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to