This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Named Query not found" Watch "Named Query not found" New topic
Author

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

What is your Java code to get the named query?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Named Query not found
 
Similar Threads
Problem with Hibernate composite key mapping
Calling HBM query in HBM file
Join table with DetachedCriteria
Classcast exception
updating records, for a table without primary key.