• Post Reply Bookmark Topic Watch Topic
  • New Topic

group_concat in hibernate

 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i have a table which consists of id, pageWeight and pageText columns only, now i can write sql query like

but how can i achieve the with hibernate.

any help would be appreciated.
 
Aniket Bharsakle
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same scenario & I'm currently working on it.
I encountered it while my R&D analysis.
You can find some hint at below Links :

Link 1 : http://stackoverflow.com/questions/4955580/hibernate-how-to-use-concat-and-group-concat

Link 2 : http://stackoverflow.com/questions/26210036/how-to-use-group-concat-in-hibernate-criteria
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!