posted 13 years ago
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.