-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Named Query not Known error
PostPosted: Thu Nov 16, 2006 2:05 pm 
Beginner
Beginner

Joined: Thu Jun 29, 2006 8:41 am
Posts: 41
Hibernate version:
3.1

Hi,

I'm trying to replace some queries in a code, with named queries.

First time I did this, it was in my own code and I've placed all queries in a single queries.hbm.xml;

Now I'm placing queries in respective hbm files (in other words, if it selects from Sistemas table, it's placed inside the Sistemas.hbm.xml file).

The fact is that when I run the program (using JUnit) it crashes with a Named Query not known error.

What can possibily be happening?

_________________
Falci - Heavy Worker!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 3:06 pm 
Beginner
Beginner

Joined: Thu Jun 29, 2006 8:41 am
Posts: 41
Forget about it. We figured that the query was placed in a hbm file no longer used by the program (and not removed). We've placed it in the correct place now.

_________________
Falci - Heavy Worker!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.