• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Named Query...

 
Senthil Narayanaswamy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Named Query. I trouble i am having is i am not able to make the Order By clause work. This is the code i am using...the query works and i am getting data but only thing is data is not getting sorted.



In Java File...
.

Any help is appreciated.

Thanks,
Senthil.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally its not possible to substitute object names in SQL, so I'd be a little bit surprised if Hibernate supported it.
[ December 02, 2008: Message edited by: Paul Sturrock ]
 
Senthil Narayanaswamy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul for sharing your thoughts. But i tried using the ?, still it doesn't work.


Any thoughts....

Thanks,
Senthil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic