This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB - QL  RSS feed

 
vivek makode
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I am learning EJB-QL with Weblogic 7.0.
I have developed an entity bean with 2 finder methods.
findByPrimaryKey(Integer id)
findByName(String name)
i have written the query also during deployment process but in vain.
there is always an exception:
FinderException - No Data found
what could possibly be the error and why?
kindly help.
Thanks in advance
Vivek
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked that the data is in the database? Or perhaps the query is incorrect or a transaction isn't committing data before you are trying to query on it.
Simon
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!