File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Named Query not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Named Query not found" Watch "Named Query not found" New topic

Named Query not found

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
Dear All

I am using the following mapping file in hibernate and on runtime I get the exception

My mapping file is following

I am not sure what could be the reason for it.I have used named queries before and it used to work. Am I missing something?

SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

What is your Java code to get the named query?


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
I was able to resolve this.Thanks a bunch for your offer to help
I agree. Here's the link:
subject: Named Query not found
It's not a secret anymore!