Re: Problems with a finder method in a cmp

2001-02-12 Thread Geoff Marshall
Please don't laugh at me, but what IS a 'finder method in a CMP'?? Just a simple explanation or a pointer to more info, please... -- -Geoff Marshall, Director of Development ... t e r r a s c o p e (415) 951-4944 54 Mint

RE: Problems with a finder method in a cmp

2001-02-12 Thread Russ White
Read O'Reilly - Enterprise JavaBeans 2nd ed. It will clear up a lot of your questions. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Marshall Sent: Monday, February 12, 2001 10:31 AM To: Orion-Interest Subject: Re: Problems with a finder method

RE: Problems with a finder method in a cmp

2001-02-12 Thread KirkYarina
Suppose you had a widget CMP entity bean, with a handedness field, and wanted to get all the left handed widgets. You'd use a finder method, findByHandedness("left"), to return a collection of left handed widgets. Orion makes this easy; just define it and go. See

Problems with a finder method in a cmp

2001-02-09 Thread fresnaULL
Hi all, I'm trying to define this finder method in a cmp: SELECT * FROM people WHERE people.name LIKE '%name%' which is correct in SQL SERVER 7.0 I put the following in the people home interface: String findByName_query = "people.name like '%$1%'"; . . . public java.util.Enumeration

Re: Problems with a finder method in a cmp

2001-02-09 Thread Joseph B. Ottinger
You'll want to use $1 in the finder method, and specify "%"+name+"%" in the finder call. Hmm, that didn't sound right... let's try again. String findByName_query = "people.name like '$1'"; .. List myList=person.findByName("%"+name+"%"); It could be that EQL will address this; I don't know.

RE: Problems with a finder method in a cmp

2001-02-09 Thread Madrid, Christopher P (US - Austin)
Title: RE: Problems with a finder method in a cmp I don't think that will work. Query in orion-ejb-jar.xml should be people.name like $1 and not people.name like '$1' but the finder method should be used as indicated. Chris Madrid Deloitte Consulting -Original Message- From:

Re: Problems with a finder method in a cmp

2001-02-09 Thread mangesh laad
Hi All u have to do is just write the findByName as u already have in the home interface . While deploying the orion will write the coresponding finder query for you in the orion--ejb-jar in its finder-method tag From: "fresnaULL" [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL