-->
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: Difference between OrderBy
PostPosted: Sat Apr 14, 2012 9:04 am 
Newbie

Joined: Tue Apr 10, 2012 7:55 am
Posts: 4
Hello I have a small question to ask, that I have not resolved clearly reading javadoc. Is it possible that the only difference between using javax.persistence.OrderBy annotation with Hibernate or using org.hibernate.annotation.OrderBy annotation is that the hibernate ones simple "append" an SQL fragment (not HQL) to order by clause, meanwhile the jpa one, specify a syntax (not SQL) to order data letting us using dot (.) notation to navigate through embedded classes?

It seems then that if you want to use custom SQL functions you should use the hibernate ones then.

Thank you very much for your attention,

Alex.


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.