Hi,
I am working on an application where most of the queries are complex and there where clause is dynamic based on the the search criteria. Some queries only involve equal comparison and i used query by example in that cases but in most of other cases other operators (>,<,Or,and) are used. In the second case i have to make a dynamic query myself by checking null in search critera and appending not null to my where clause. What i intend to ask is ,Can query by criteria and query by example can be used together. So i specify the operators using Expression API and queruy is build dynamically by using Example object?
Please help me asap
Regards,
Shoaib Akhtar
|