• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB QL returning max of 50 records

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

How do I return in my EJB QL findXXX methods a max of 50 records?
 
Tony romer
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
call SetMaxResults of your query object
 
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!