• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

findAll methods

 
Ram Pra
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are all the reasons for which a findAll method returns a 0 collection, we are using JRun4 and the findBy primary key works fine where as all the findAll methods return a collection of size 0.
Thanks,
Ram Pra
 
Eduard Manas
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you mean that it returns an empty collection.
When a finder method returns an empty collection, and it doesn't throw any exception (either FinderException or RemoteException), it means that either it has not found any matches in the database or the SQL query of the finder method is wrong.
Eduard
 
Ram Pra
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you,
That was a problem with the JRun server, once I installed their patch findAll methods started working in a normal way
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic