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: GetNamedQuery question
PostPosted: Tue Aug 08, 2006 5:48 am 
Beginner
Beginner

Joined: Wed Apr 26, 2006 4:12 am
Posts: 29
I want to store my HQL queries externally to the application and retrieve them using the GetNamedQuery function. These queries are projection queries and don't relate directly to any individual entity, yet Hibernate seems to insist that you must store the query in one of the data entity mapping files instead of centrally in an arbitrary file just for storing queries for general use.

Is there a way I can store queries for general use externally, perhaps in a mapping file dedicated for this purpose, instead of having to store them in one of the individual data mapping files?


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.