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