-->
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.  [ 3 posts ] 
Author Message
 Post subject: Native queries
PostPosted: Thu Apr 08, 2010 6:05 am 
Newbie

Joined: Sun Sep 20, 2009 10:17 am
Posts: 2
Is there anything special about native queries that I should be aware of when using them? Is there any reason to prefer them over HQL queries or to avoid them? In general, what's the difference between doing something via an HQL and an SQL query?


[OFF TOPIC]
I was forced to register a new account due to some problem with the previous one. How do I contact the admin about this? I see no way to send private messages or anything...


Top
 Profile  
 
 Post subject: Re: Native queries
PostPosted: Thu Apr 08, 2010 8:21 am 
Beginner
Beginner

Joined: Fri Aug 24, 2007 9:47 am
Posts: 21
If you wana be general and if you wanna really abstract from the database, it's better to use HQL, many people use hibernate without to know the main interest.
If you use HQL, you can change of JDBC support easilier than Native query, it's normal because native query use the dialect of your jdbc

_________________
recherche-programmeur.fr


Top
 Profile  
 
 Post subject: Re: Native queries
PostPosted: Fri Apr 09, 2010 4:42 am 
Newbie

Joined: Sun Sep 20, 2009 10:17 am
Posts: 2
Yes, I'm aware of that issue, but I was thinking more along the lines of possible differences in caching or other more subtle aspects.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.