Re: finder methods

"Dmitri Colebatch" <[email protected]> Sat, 30 Mar 2002 11:32:21 +1100
Newsgroups gmane.comp.java.ejb.general,gmane.spam.detected
Message-ID <04c301c1d782$5ae06420$0100a8c0@hobbes>
------=_NextPart_000_04C0_01C1D7DE.8E2DC3C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I would suggest a good book.  http://www.theserverside.com has a lot of ejb=
 resources (including the 'Mastering EJB2' book) available online.  Have a =
look there.

cheesr
dim
  ----- Original Message -----=20
  From: ravi kumar=20
  To: [email protected]=20
  Sent: Friday, March 29, 2002 1:36 PM
  Subject: [EJB-Developer] finder methods


  Hi=20
      i would like to know something about the finder methods apart from  f=
indByPrimaryKey method.can some one help me out.

  ravi

  >From: "Dmitri Colebatch"=20

  >Reply-To: [email protected]=20
  >To: , "hpas"=20
  >Subject: Re: [EJB-Developer] Destroy an Entity Bean=20
  >Date: Tue, 26 Mar 2002 16:28:31 +1100=20
  >=20
  >an entity bean (typically) represents a record in the database. you only=
 need to remove it if you want to delete the record.=20
  >=20
  >please limit the cross posting.=20
  >=20
  >hth=20
  >dim=20
  >=20
  >----- Original Message -----=20
  >From: "Nicolas D'Ippolito"=20
  >To: "hpas" ; "EJB-Developer" ; "EJB2.0-Persistence"=20
  >=20
  >Sent: Tuesday, March 26, 2002 5:55 AM=20
  >Subject: [EJB-Developer] Destroy an Entity Bean=20
  >=20
  >=20
  > > Hi, I have a problem with the Entity Bean. I need to=20
  > > know how to destroy an EJB, because remove method=20
  > > seems to destroy a row from the associated table=20
  > > (apparently it needs a key column).=20
  > >=20
  > > I hope you can help me. Thanks.=20
  > >=20
  > > __________________________________________________=20
  > > Do You Yahoo!?=20
  > > Yahoo! Movies - coverage of the 74th Academy Awards=AE=20
  > > http://movies.yahoo.com/=20
  > >=20
  > >=20
  > >=20
  > > EJB-Developer group email addresses:=20
  > > Post message: [email protected]=20
  > > Subscribe: [email protected]=20
  > > Unsubscribe: [email protected]=20
  > > List owner: [email protected]=20
  > >=20
  > > Our other technical discussion groups:=20
  > > - For general Java (J2EE) questions/answers: http://groups.yahoo.com/=
group/Java_Developer=20
  > > - For peer-to-peer software development discussion: http://groups.yah=
oo.com/group/P2P-Developer=20
  > >=20
  > > Web link to the EJB-Developer group:=20
  > > http://groups.yahoo.com/group/EJB-Developer=20
  > >=20
  > > ATTENTION: You are receiving this message because you actively subscr=
ibed to the EJB-Developer technical discussion group on=20
  >Yahoo! Groups. All subscriptions come from Yahoo-verified email addresse=
s and are logged; therefore subscriptions can be proved to=20
  >any appropriate legal authority. To unsubscribe, send a blank email from=
 the email address receiving group messages to the=20
  >"Unsubscribe" email address shown above. If unsubscribing doesn't work, =
send a message concerning this problem to=20
  >[email protected]. Only Yahoo! Groups is responsible for their own=
 subscription services; the moderator will not perform=20
  >these services at any time.=20
  > >=20
  > > *** EJB-Developer - A free service brought to you by Democracy 2.0 (w=
ww.democracy2.org) ***=20
  > >=20
  > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/te=
rms/=20
  > >=20
  > >=20
  >=20
  >=20
  >------------------------ Yahoo! Groups Sponsor ---------------------~-->=
=20
  >Tiny Wireless Camera under $80!=20
  >Order Now! FREE VCR Commander!=20
  >Click Here - Only 1 Day Left!=20
  >http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/5cFolB/TM=20
  >---------------------------------------------------------------------~->=
=20
  >=20
  >EJB-Developer group email addresses:=20
  > Post message: [email protected]=20
  > Subscribe: [email protected]=20
  > Unsubscribe: [email protected]=20
  > List owner: [email protected]=20
  >=20
  >Our other technical discussion groups:=20
  > - For general Java (J2EE) questions/answers: http://groups.yahoo.com/gr=
oup/Java_Developer=20
  > - For peer-to-peer software development discussion: http://groups.yahoo=
.com/group/P2P-Developer=20
  >=20
  >Web link to the EJB-Developer group:=20
  > http://groups.yahoo.com/group/EJB-Developer=20
  >=20
  >ATTENTION: You are receiving this message because you actively subscribe=
d to the EJB-Developer technical discussion group on Yahoo! Groups. All sub=
scriptions come from Yahoo-verified email addresses and are logged; therefo=
re subscriptions can be proved to any appropriate legal authority. To unsub=
scribe, send a blank email from the email address receiving group messages =
to the "Unsubscribe" email address shown above. If unsubscribing doesn't wo=
rk, send a message concerning this problem to [email protected]. Only=
 Yahoo! Groups is responsible for their own subscription services; the mode=
rator will not perform these services at any time.=20
  >=20
  >*** EJB-Developer - A free service brought to you by Democracy 2.0 (www.=
democracy2.org) ***=20
  >=20
  >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms=
/=20
  >=20
  >=20


---------------------------------------------------------------------------=
---
  Chat with friends online, try MSN Messenger: Click Here

        Yahoo! Groups Sponsor=20
              ADVERTISEMENT
=20=20=20=20=20=20=20=20=20=20=20=20=20
=20=20=20=20=20=20=20
=20=20=20=20=20=20=20

  EJB-Developer group email addresses:
    Post message: [email protected]
    Subscribe:    [email protected]
    Unsubscribe:  [email protected]
    List owner:   [email protected]

  Our other technical discussion groups:
  - For general Java (J2EE) questions/answers: http://groups.yahoo.com/grou=
p/Java_Developer
  - For peer-to-peer software development discussion: http://groups.yahoo.c=
om/group/P2P-Developer

  Web link to the EJB-Developer group:
    http://groups.yahoo.com/group/EJB-Developer

  ATTENTION: You are receiving this message because you actively subscribed=
 to the EJB-Developer technical discussion group on Yahoo! Groups.  All sub=
scriptions come from Yahoo-verified email addresses and are logged; therefo=
re subscriptions can be proved to any appropriate legal authority.  To unsu=
bscribe, send a blank email from the email address receiving group messages=
 to the "Unsubscribe" email address shown above.  If unsubscribing doesn't =
work, send a message concerning this problem to [email protected].  O=
nly Yahoo! Groups is responsible for their own subscription services; the m=
oderator will not perform these services at any time.

  *** EJB-Developer - A free service brought to you by Democracy 2.0 (www.d=
emocracy2.org) ***=20

  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.=20


------=_NextPart_000_04C0_01C1D7DE.8E2DC3C0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>


<DIV><FONT face=3D"Courier New" size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>I would suggest a good book.&nbsp;=
 <A=20
href=3D"http://www.theserverside.com">http://www.theserverside.com</A> has =
a lot=20
of ejb resources (including the 'Mastering EJB2' book) available online.&nb=
sp;=20
Have a look there.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>cheesr</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>dim</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LE=
FT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>Fro=
m:</B>=20
  <A [email protected] href=3D"mailto:[email protected]=
">ravi=20
  kumar</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  [email protected]=20
  href=3D"mailto:[email protected]">[email protected]=
om</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, March 29, 2002 1:36=
=20
PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [EJB-Developer] finder=20
  methods</DIV>
  <DIV><BR></DIV>
  <DIV>Hi=20
  <DIV></DIV>
  <DIV></DIV>
  <P>&nbsp;&nbsp;&nbsp; i would like to know something about the finder met=
hods=20
  apart from&nbsp; findByPrimaryKey method.can some one help me out.</P>
  <P>ravi</P>
  <P>&gt;From: "Dmitri Colebatch" <[email protected]></P>
  <DIV></DIV>&gt;Reply-To: <A=20
  href=3D"mailto:[email protected]">[email protected]=
om</A>=20
  <DIV></DIV>&gt;To: <[email protected]>, "hpas"=20
  <[email protected]>
  <DIV></DIV>&gt;Subject: Re: [EJB-Developer] Destroy an Entity Bean=20
  <DIV></DIV>&gt;Date: Tue, 26 Mar 2002 16:28:31 +1100=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;an entity bean (typically) represents a record in the data=
base.=20
  you only need to remove it if you want to delete the record.=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;please limit the cross posting.=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;hth=20
  <DIV></DIV>&gt;dim=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;----- Original Message -----=20
  <DIV></DIV>&gt;From: "Nicolas D'Ippolito" <[email protected]>
  <DIV></DIV>&gt;To: "hpas" <[email protected]>; "EJB-Developer"=
=20
  <[email protected]>; "EJB2.0-Persistence"=20
  <DIV></DIV>&gt;<[email protected]>=20
  <DIV></DIV>&gt;Sent: Tuesday, March 26, 2002 5:55 AM=20
  <DIV></DIV>&gt;Subject: [EJB-Developer] Destroy an Entity Bean=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt; &gt; Hi, I have a problem with the Entity Bean. I need to=
=20
  <DIV></DIV>&gt; &gt; know how to destroy an EJB, because remove method=20
  <DIV></DIV>&gt; &gt; seems to destroy a row from the associated table=20
  <DIV></DIV>&gt; &gt; (apparently it needs a key column).=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt; I hope you can help me. Thanks.=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt; __________________________________________________=20
  <DIV></DIV>&gt; &gt; Do You Yahoo!?=20
  <DIV></DIV>&gt; &gt; Yahoo! Movies - coverage of the 74th Academy Awards=
=AE=20
  <DIV></DIV>&gt; &gt; http://movies.yahoo.com/=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt; EJB-Developer group email addresses:=20
  <DIV></DIV>&gt; &gt; Post message: [email protected]=20
  <DIV></DIV>&gt; &gt; Subscribe: [email protected]=20
  <DIV></DIV>&gt; &gt; Unsubscribe: [email protected]=
om=20
  <DIV></DIV>&gt; &gt; List owner: [email protected]=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt; Our other technical discussion groups:=20
  <DIV></DIV>&gt; &gt; - For general Java (J2EE) questions/answers:=20
  http://groups.yahoo.com/group/Java_Developer=20
  <DIV></DIV>&gt; &gt; - For peer-to-peer software development discussion:=
=20
  http://groups.yahoo.com/group/P2P-Developer=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt; Web link to the EJB-Developer group:=20
  <DIV></DIV>&gt; &gt; http://groups.yahoo.com/group/EJB-Developer=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt; ATTENTION: You are receiving this message because yo=
u=20
  actively subscribed to the EJB-Developer technical discussion group on=20
  <DIV></DIV>&gt;Yahoo! Groups. All subscriptions come from Yahoo-verified =
email=20
  addresses and are logged; therefore subscriptions can be proved to=20
  <DIV></DIV>&gt;any appropriate legal authority. To unsubscribe, send a bl=
ank=20
  email from the email address receiving group messages to the=20
  <DIV></DIV>&gt;"Unsubscribe" email address shown above. If unsubscribing=
=20
  doesn't work, send a message concerning this problem to=20
  <DIV></DIV>&gt;[email protected]. Only Yahoo! Groups is responsible=
 for=20
  their own subscription services; the moderator will not perform=20
  <DIV></DIV>&gt;these services at any time.=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt; *** EJB-Developer - A free service brought to you by=
=20
  Democracy 2.0 (www.democracy2.org) ***=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt; Your use of Yahoo! Groups is subject to=20
  http://docs.yahoo.com/info/terms/=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt; &gt;=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;------------------------ Yahoo! Groups Sponsor=20
  ---------------------~--&gt;=20
  <DIV></DIV>&gt;Tiny Wireless Camera under $80!=20
  <DIV></DIV>&gt;Order Now! FREE VCR Commander!=20
  <DIV></DIV>&gt;Click Here - Only 1 Day Left!=20
  <DIV></DIV>&gt;http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/5cFolB/TM=20
  <DIV></DIV>&gt;----------------------------------------------------------=
-----------~-&gt;=20

  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;EJB-Developer group email addresses:=20
  <DIV></DIV>&gt; Post message: [email protected]=20
  <DIV></DIV>&gt; Subscribe: [email protected]=20
  <DIV></DIV>&gt; Unsubscribe: [email protected]=20
  <DIV></DIV>&gt; List owner: [email protected]=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;Our other technical discussion groups:=20
  <DIV></DIV>&gt; - For general Java (J2EE) questions/answers:=20
  http://groups.yahoo.com/group/Java_Developer=20
  <DIV></DIV>&gt; - For peer-to-peer software development discussion:=20
  http://groups.yahoo.com/group/P2P-Developer=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;Web link to the EJB-Developer group:=20
  <DIV></DIV>&gt; http://groups.yahoo.com/group/EJB-Developer=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;ATTENTION: You are receiving this message because you acti=
vely=20
  subscribed to the EJB-Developer technical discussion group on Yahoo! Grou=
ps.=20
  All subscriptions come from Yahoo-verified email addresses and are logged=
;=20
  therefore subscriptions can be proved to any appropriate legal authority.=
 To=20
  unsubscribe, send a blank email from the email address receiving group=20
  messages to the "Unsubscribe" email address shown above. If unsubscribing=
=20
  doesn't work, send a message concerning this problem to=20
  [email protected]. Only Yahoo! Groups is responsible for their own=
=20
  subscription services; the moderator will not perform these services at a=
ny=20
  time.=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;*** EJB-Developer - A free service brought to you by Democ=
racy=20
  2.0 (www.democracy2.org) ***=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;Your use of Yahoo! Groups is subject to=20
  http://docs.yahoo.com/info/terms/=20
  <DIV></DIV>&gt;=20
  <DIV></DIV>&gt;=20
  <DIV></DIV></DIV><BR clear=3Dall>
  <HR>
  Chat with friends online, try MSN Messenger: <A=20
  href=3D"http://g.msn.com/1HM303401/x">Click Here</A><BR><BR><BR><TT>EJB-D=
eveloper=20
  group email addresses:<BR>&nbsp; Post message:=20
  [email protected]<BR>&nbsp; Subscribe:&nbsp;&nbsp;&nbsp;=20
  [email protected]<BR>&nbsp; Unsubscribe:&nbsp;=20
  [email protected]<BR>&nbsp; List owner:&nbsp;&nbs=
p;=20
  [email protected]<BR><BR>Our other technical discussion=
=20
  groups:<BR>- For general Java (J2EE) questions/answers: <A=20
  href=3D"http://groups.yahoo.com/group/Java_Developer">http://groups.yahoo=
.com/group/Java_Developer</A><BR>-=20
  For peer-to-peer software development discussion: <A=20
  href=3D"http://groups.yahoo.com/group/P2P-Developer">http://groups.yahoo.=
com/group/P2P-Developer</A><BR><BR>Web=20
  link to the EJB-Developer group:<BR>&nbsp; <A=20
  href=3D"http://groups.yahoo.com/group/EJB-Developer">http://groups.yahoo.=
com/group/EJB-Developer</A><BR><BR>ATTENTION:=20
  You are receiving this message because you actively subscribed to the=20
  EJB-Developer technical discussion group on Yahoo! Groups.&nbsp; All=20
  subscriptions come from Yahoo-verified email addresses and are logged;=20
  therefore subscriptions can be proved to any appropriate legal=20
  authority.&nbsp; To unsubscribe, send a blank email from the email addres=
s=20
  receiving group messages to the "Unsubscribe" email address shown above.&=
nbsp;=20
  If unsubscribing doesn't work, send a message concerning this problem to=
=20
  [email protected].&nbsp; Only Yahoo! Groups is responsible for thei=
r own=20
  subscription services; the moderator will not perform these services at a=
ny=20
  time.<BR><BR>*** EJB-Developer - A free service brought to you by Democra=
cy=20
  2.0 (www.democracy2.org) ***</TT> <BR><BR><TT>Your use of Yahoo! Groups i=
s=20
  subject to the <A href=3D"http://docs.yahoo.com/info/terms/">Yahoo! Terms=
 of=20
  Service</A>.</TT> <BR></BLOCKQUOTE>
<br>

<!-- |**|begin egp html banner|**| -->

<table border=3D0 cellspacing=3D0 cellpadding=3D2>
<tr bgcolor=3D#FFFFCC>
<td align=3Dcenter><font size=3D"-1" color=3D#003399><b>Yahoo! Groups Spons=
or</b></font></td>
</tr>
<tr bgcolor=3D#FFFFFF>
<td align=3Dcenter width=3D470><table border=3D0 cellpadding=3D0 cellspacin=
g=3D0><tr><td align=3Dcenter><font face=3Darial size=3D-2>ADVERTISEMENT</fo=
nt><br><a href=3D"http://rd.yahoo.com/M=3D215002.1818248.3328688.1261774/D=
=3Degroupweb/S=3D1705006905:HM/A=3D847665/R=3D0/*http://ads.x10.com/?bHlhaG=
9vbW9uc3RlcjcuZGF0=3D1017448585%3eM=3D215002.1818248.3328688.1261774/D=3Deg=
roupweb/S=3D1705006905:HM/A=3D847665/R=3D1" target=3D_top><img src=3D"http:=
//ads.x10.com/?Z3lhaG9vbW9uc3RlcjcuZGF0=3D1017448585%3eM=3D215002.1818248.3=
328688.1261774/D=3Degroupweb/S=3D1705006905:HM/A=3D847665/R=3D2" alt=3D"" w=
idth=3D"300" height=3D"250" border=3D"0"></a></td></tr></table></td>
</tr>
<tr><td><img alt=3D"" width=3D1 height=3D1 src=3D"http://us.adserver.yahoo.=
com/l?M=3D215002.1818248.3328688.1261774/D=3Degroupmail/S=3D1705006905:HM/A=
=3D847665/rand=3D708384476"></td></tr>
</table>

<!-- |**|end egp html banner|**| -->


<br>
<tt>
EJB-Developer group email addresses:<BR>
&nbsp; Post message: [email protected]<BR>
&nbsp; Subscribe:&nbsp;&nbsp;&nbsp; [email protected]=
<BR>
&nbsp; Unsubscribe:&nbsp; [email protected]<BR>
&nbsp; List owner:&nbsp;&nbsp; [email protected]<BR>
<BR>
Our other technical discussion groups:<BR>
 - For general Java (J2EE) questions/answers: <a href=3D"http://groups.yaho=
o.com/group/Java_Developer">http://groups.yahoo.com/group/Java_Developer</a=
><BR>
 - For peer-to-peer software development discussion: <a href=3D"http://grou=
ps.yahoo.com/group/P2P-Developer">http://groups.yahoo.com/group/P2P-Develop=
er</a><BR>
<BR>
Web link to the EJB-Developer group:<BR>
&nbsp; <a href=3D"http://groups.yahoo.com/group/EJB-Developer">http://group=
s.yahoo.com/group/EJB-Developer</a><BR>
<BR>
ATTENTION: You are receiving this message because you actively subscribed t=
o the EJB-Developer technical discussion group on Yahoo! Groups.&nbsp; All =
subscriptions come from Yahoo-verified email addresses and are logged; ther=
efore subscriptions can be proved to any appropriate legal authority.&nbsp;=
 To unsubscribe, send a blank email from the email address receiving group =
messages to the &quot;Unsubscribe&quot; email address shown above.&nbsp; If=
 unsubscribing doesn't work, send a message concerning this problem to supp=
[email protected].&nbsp; Only Yahoo! Groups is responsible for their own =
subscription services; the moderator will not perform these services at any=
 time.<BR>
<BR>
*** EJB-Developer - A free service brought to you by Democracy 2.0 (www.dem=
ocracy2.org) ***</tt>
<br>

<br>
<tt>Your use of Yahoo! Groups is subject to the <a href=3D"http://docs.yaho=
o.com/info/terms/">Yahoo! Terms of Service</a>.</tt>
</br>

</BODY></HTML>

------=_NextPart_000_04C0_01C1D7DE.8E2DC3C0--