How to write ATG RQL includes query?

Recently I had to write an ATG Repository Query (RQL) to load collection using “IN” query. I found the ATG API documents are not good enough to tell the story clearly. Below given example load all employees with give ids. The important API to understand is QueryBuilder.createIncludesQuery(QueryExpression valueExpression, QueryExpression propertyExpression); You would have noticed that the values needs to be passed in as the first argument.

ATG RQL includes query example

Reference

ATG Repository Query Language.

3 thoughts on “How to write ATG RQL includes query?

  1. Vico said:

    Good one.

    • Sanju Thomasourownjava said:

      Thanks Vico.