Hi Mesut, Unfortunately, the current version of EJB-QL in CMP is quite limited and does not support many of the operations that are available in SQL. These limitations will be addressed in the next version of the EJB spec. You can switch to BMP, but using finders in BMP that return moderate to large result sets have performance penalties. If this is one of case, you could just place the query in a stateless session bean.
Regards Suneet Shah Diamelle Technologies J2EE Business Components www.diamelle.com ----- Original Message ----- From: "Mesut Celik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 24, 2004 2:08 AM Subject: Re: EJB-QL trim usage Ok. I know that but isnt there anyone who have experienced such an problem. As i understand , i need a preprocessing operation before this finder method performed in order to clean up spaces at the end of the field specified in the coloumn so that i can perform a clean query without taking care of spaces. But there is no chance ,IMHO, with CMP. Do i need to switch to BMP? -----Original Message----- From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED] On Behalf Of Chadha, Devesh Sent: Monday, February 23, 2004 5:51 PM To: [EMAIL PROTECTED] Subject: Re: EJB-QL trim usage My 2c I don't see any implementations for trim in the EJB 2.1 specifications. Regards, Devesh -----Original Message----- From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED] On Behalf Of Mesut Celik Sent: Monday, February 23, 2004 3:20 AM To: [EMAIL PROTECTED] Subject: EJB-QL trim usage Hi, I have a problem with using ejb-ql but i couldnt find the answer. I need to use a trim function in a finder query so that i am able to cut the spaces appended at the end of a field but i dont know how. My query is like as follows: select OBJECT(d) from Doctors d where d.doctorId = ?1 what i want to do: select OBJECT(d) from Doctors d where trim(d.doctorId) = ?1 my application server is wls8.1 Regards... Me_sut *********************************************************************** Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi tarafindan almasi amaçlanan yetkili gerçek ya da tüzel kisinin kullanimi içindir.Eger söz konusu yetkili alici degilseniz bu elektronik postanin içerigini açiklamaniz,kopyalamaniz, yönlendirmeniz ve kullanmaniz kesinlikle yasaktir ve bu elektronik postayi derhal silmeniz gerekmektedir TURKCELL bu mesajin içerdigi bilgilerin dogrulugu veya eksiksiz oldugu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne sekilde olursa olsun içeriginden, iletilmesinden, alinmasindan ve saklanmasindan sorumlu degildir. Bu mesajdaki görüsler yalnizca gönderen kisiye aittir ve TURKCELL'in görüslerini yansitmayabilir Bu e-posta bilinen bütün bilgisayar virüslerine karsi taranmistir. *********************************************************************** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is strictly prohibited, and the e-mail should immediately be deleted. TURKCELL makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever.The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of TURKCELL. This e-mail has been scanned for all known computer viruses. *********************************************************************** =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". ---------------------------------------------------------------------------- -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". *********************************************************************** Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi tarafından alması amaçlanan yetkili gerçek ya da tüzel kişinin kullanımı içindir.Eğer söz konusu yetkili alıcı değilseniz bu elektronik postanın içeriğini açıklamanız,kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır ve bu elektronik postayı derhal silmeniz gerekmektedir TURKCELL bu mesajın içerdiği bilgilerin doğruluğu veya eksiksiz olduğu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne şekilde olursa olsun içeriğinden, iletilmesinden, alınmasından ve saklanmasından sorumlu değildir. Bu mesajdaki görüşler yalnızca gönderen kişiye aittir ve TURKCELL'in görüşlerini yansıtmayabilir Bu e-posta bilinen bütün bilgisayar virüslerine karşı taranmıştır. *********************************************************************** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is strictly prohibited, and the e-mail should immediately be deleted. TURKCELL makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever.The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of TURKCELL. This e-mail has been scanned for all known computer viruses. *********************************************************************** =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".