-->
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: External Named Queries with Annotations
PostPosted: Wed Jul 23, 2008 6:53 pm 
Newbie

Joined: Mon Mar 15, 2004 5:48 am
Posts: 9
I am looking at changing some code which uses hibernate mapping files to use annotations instead. The thing is this code uses named queries which are currently in the mapping file. I know I could move the queries in to the Java files using annotations, but I would rather keep the queries eternal and just move everything else to do with the mapping to annotations.

Is this possible, or is it an all or nothing deal?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 24, 2008 11:49 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

That should work just fine. You can mix mapping files with annotations.

--Hardy


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.