• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

median in hibernate

 
Naveen Kumar
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
can anyone help how to use median function in oracle to be used in hibernate
.how to use median function in hibernate .
we are using oracle as a database using hibernate .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HQL doesn't have a median function itself. But the is nothing to stop you running propriatory SQL via Hibernate. Have a look at Session.createSQLQuery(). Alternatively you can do this with a named query.
[ July 16, 2008: Message edited by: Paul Sturrock ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic