Hi,
In my bean implementations I have to extract certain fields from finder methods to put them in to ejb-ql's (I want to use CMP). eg;
findByProductDefinitionAndRetrievalDate( ProductDefinition productDefinition, Calendar retrievalDate )
in this finder I have to extract atributes using getters.
Is it posible to do this in ejb-ql or do I have to make my ejb's BMP.
Thanks,
Gavin
-
finder methods (2 messages)
- Posted by: Gavin Selvaratnam
- Posted on: July 29 2002 23:12 EDT
Threaded Messages (2)
- finder methods by Manavendra Gupta on July 30 2002 00:56 EDT
- finder methods by Gavin Selvaratnam on July 30 2002 03:17 EDT
-
finder methods[ Go to top ]
- Posted by: Manavendra Gupta
- Posted on: July 30 2002 00:56 EDT
- in response to Gavin Selvaratnam
What do you mean by "in this finder I have to extract atributes using getters."?
If you just want to use CMP and write a finder method that accepts the two specified parameters, go ahead and write it. You ejb-ql would look something like:
Select Object(o) from table as o where productDefinition = ?1 and retrievalDate = ?2
-
finder methods[ Go to top ]
- Posted by: Gavin Selvaratnam
- Posted on: July 30 2002 03:17 EDT
- in response to Manavendra Gupta
Hi,
The problem is the productDefinition is not the coresponding field in the DB and retrivalDate is a clender class and that has to be converted in to a TimeStamp for the quesry. I hope you understand...