GO DIRECTLY TO
My Oracle Support Community
Oracle Technology Network
Fusion Middleware Archived Forums
Application Server Archived Forums
GlassFish Enterprise Manager
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Aug 7, 2012 7:34 PM by 859967
Aug 7, 2012 7:34 PM
Currently Being Moderated
I have a mapping in my entity, one to many mapping, example relationship "1 question -> many answers"
so, in Question class, i can access a collection of "Answers"; But in my criteria query, i need to concat all "Answers' summary" for sorting purpose. ("summary" is a field in Answer class)
I can get:
Expression<Collection<T>> e = root.get("answers")
but i don't know how to create sorting criteria for concatenation of all summary that an answer has.
I have googled around, but i haven't found a way to do it.
thank you for your help
Edited by: CardM on Aug 7, 2012 7:34 PM
Track in Communications
- 10 points
- 5 points