-->
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: Advantages of externalized named queries
PostPosted: Sat Nov 26, 2011 11:31 pm 
Newbie

Joined: Thu Nov 17, 2011 2:05 am
Posts: 3
Hi,

Can someone please explain the advantages of using named queries over normal queries?

Thanks,
Pratik


Top
 Profile  
 
 Post subject: Re: Advantages of externalized named queries
PostPosted: Wed Nov 30, 2011 5:36 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
xpratikpatel wrote:
Can someone please explain the advantages of using named queries over normal queries?


Even though this is the wrong forum. The advantage is the ability to for centralize the query configuration and it makes it easier to reuse queries across classes. Of course it is all a matter of taste.

--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.