Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
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 9:34 PM by
Aug 7, 2012 9:34 PM
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
This content has been marked as final.
Show 0 replies