-->
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.  [ 1 post ] 
Author Message
 Post subject: NamedQueries in non-Entity classes
PostPosted: Sun Nov 18, 2007 12:18 pm 
Newbie

Joined: Tue May 08, 2007 12:21 pm
Posts: 4
I have some named queries that I want available in test situations but not in production code. As a result, I put these queries in a non-entity class, and add that class to the configuration using .addAnnotatedClass(). It cannot find the named query. Any idea how to get this to work?


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

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.