I am new to hibernate and looking for a) A solutions and b) comparison of solutions in terms of performance and query complexity.
Example entity - (Assume required hibernate annotations)
Class Ent{
String name;
List<String> alias;
}
I need a solution which can search for a string 'example' in name and alias array in a single database query.
I am able to do this using hibernate with RAW sql ( select * ...). Can somebody suggest a better solution using HQl, Criteria, etc.. with reason