Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate - Row Concatenation

 
dwarakanathan thiru
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
For some reason, It is always good to see ROWS concatenated for a distinct combination.

I have a requirement where:
ID NAME SUBJECT EXAMID MARKS
1 Dwarak English 1 90
1 Dwarak English 2 80
1 Dwarak XYZ 1 95

I need to show it as
ID NAME SUBJECT EXAMID MARKS
1 Dwarak English 1,2 90,80
1 Dwarak XYZ 1 95

Session session = SessionLocator.getSession();
Criteria criteria = session.createCriteria(ExamDetails.class);

The above is an example. I could have designed the table in a better way.

Can you please let me know how to do this in hibernate.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy Greenhorn!

Just a reminder to keep your subject lines in lower case letters. When you put it in all caps, it looks like you're shouting. I fixed it all up for ya.

 
dwarakanathan thiru
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about that. I shall do that hereafter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic