geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Katia Aresti Gonzalez" <>
Subject Re: Adding EJB-QL to CMP beans
Date Sat, 23 Apr 2005 09:24:59 GMT
<html><div style='background-color:'><DIV class=RTE>
<P>Yes, when i finish with the deployment of all the applicaction I will put it all
in the wiki. </P>
<P>Thanks :-)</P>
<P>By the way, how can i put my name in the introduce yourself of the wiki? or im not
<DIV></DIV>&gt;From: Dain Sundstrom &lt;;
<DIV></DIV>&gt;Subject: Re: Adding EJB-QL to CMP beans
<DIV></DIV>&gt;Date: Fri, 22 Apr 2005 12:52:55 -0700
<DIV></DIV>&gt;Can you add this to the wiki also?
<DIV></DIV>&gt;Dain Sundstrom
<DIV></DIV>&gt;Chief Architect
<DIV></DIV>&gt;Gluecode Software
<DIV></DIV>&gt;On Apr 22, 2005, at 2:02 AM, Katia Aresti Gonzalez wrote:
<DIV></DIV>&gt;&gt;Yes, I did and it works perfect!! By the way, I will
try to change
<DIV></DIV>&gt;&gt;my cmp to 2.0. and try it.
<DIV></DIV>&gt;&gt;Thant you!!
<DIV></DIV>&gt;&gt; &gt;From: Jeremy Boynes &lt;;
<DIV></DIV>&gt;&gt; &gt;Reply-To:
<DIV></DIV>&gt;&gt; &gt;To:
<DIV></DIV>&gt;&gt; &gt;Subject: Re: Adding EJB-QL to CMP beans
<DIV></DIV>&gt;&gt; &gt;Date: Thu, 21 Apr 2005 16:56:08 -0700
<DIV></DIV>&gt;&gt; &gt;
<DIV></DIV>&gt;&gt; &gt;Katia Aresti Gonzalez wrote:
<DIV></DIV>&gt;&gt; &gt;&gt;Thank you Jeremy!
<DIV></DIV>&gt;&gt; &gt;&gt;
<DIV></DIV>&gt;&gt; &gt;&gt;Katia
<DIV></DIV>&gt;&gt; &gt;&gt;
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;From:
Jeremy Boynes &lt;;
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;Reply-To:
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;To:
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;Subject:
Re: Adding EJB-QL to CMP beans
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;Date:
Thu, 21 Apr 2005 08:09:09 -0700
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;Katia
Aresti Gonzalez wrote:
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;&gt;Hi
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp;Im
migrating a program with 3 CMP Beans. The thing it that
<DIV></DIV>&gt;&gt; &gt;&gt;use
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;&gt;de
container managed persistence, i need to add EJB-QL,
<DIV></DIV>&gt;&gt; &gt;&gt;the
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;&gt;examples,
all of them have finAll() or findByPromaryKey, and
<DIV></DIV>&gt;&gt; &gt;&gt;these
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;&gt;doenst
give any problems, the problems are the other select.
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp;What
do I need to add EJB-QL support for CMP sql selects??
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;&gt;thank
you very much for your help!
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;&gt;
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;Assuming
you have the basic fields mapped, you should just be
<DIV></DIV>&gt;&gt; &gt;&gt;able
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;to specify
the EJB-QL in the standard deployment descriptor;
<DIV></DIV>&gt;&gt; &gt;&gt;will
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;automatically
convert that to the appropriate SQL.
<DIV></DIV>&gt;&gt; &gt;&gt;&nbsp;&nbsp;&gt;
<DIV></DIV>&gt;&gt; &gt;
<DIV></DIV>&gt;&gt; &gt;We chatted a little on IRC - Katia's EJB's
are 1.x so there is no
<DIV></DIV>&gt;&gt; &gt;way to specify the query in the standard DD.
<DIV></DIV>&gt;&gt; &gt;
<DIV></DIV>&gt;&gt; &gt;Instead, we support this by allowing EJB-QL
from 2.x to be used
<DIV></DIV>&gt;&gt; &gt;the app-server specific deployment plan for
a 1.x bean e.g.
<DIV></DIV>&gt;&gt; &gt;
<DIV></DIV>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/resource-ref&gt;
<DIV></DIV>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;query&gt;
<DIV></DIV>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV></DIV>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;method-name&gt;findAll&lt;/method-name&gt;
<DIV></DIV>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;method-params
<DIV></DIV>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<DIV></DIV>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;ejb-ql&gt;SELECT OBJECT(u) FROM UsuarioEJB as u&lt;/ejb-ql&gt;
<DIV></DIV>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/query&gt;
<DIV></DIV>&gt;&gt; &gt;
<DIV></DIV>&gt;&gt; &gt;--
<DIV></DIV>&gt;&gt; &gt;Jeremy
<DIV></DIV>&gt;&gt;Busca a la vez en Internet, en directorios, en enciclopedias...
<DIV></DIV>&gt;&gt;Atrévete con el nuevo MSN Search
<DIV></DIV></div><br clear=all><hr>Descubre la descarga digital
segura.  <a href="" target="_top">Medio millón
de canciones en MSN Music. </a> </html>

View raw message