• Post Reply Bookmark Topic Watch Topic
  • New Topic

Custom finder methods - EJBQL  RSS feed

 
Radha Damera
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all...
I iam doing a projectin EJB. I have to retrieve the total no of records from a particular table.Do i have to use the find methods or select methods? I think i have to use find methods,b'se if i use select methods,i cannot access them from my client - JSPs.Am i correct?
Iam using Collection as the return type for my find methods.my problem is that iam getting records,but they are being displayed as various symbols,numbers - as objects even though i typecast or use toString method to display them in string format.
And another question is, once i retreive a record, how to display the various fields? For this do i have to change my return type as the EJBObject so that i can use the get or set methods? Please help me as soon as possible as i have to submit my project soon.
Thank You.
Radha.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBQL does not have a COUNT function defined.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
EJBQL does not have a COUNT function defined.

EJB 2.1 has it.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!