Can I write a pass-thru OQL?
Yes. Just put “CALL SQL” keywords in front of your SQL statement. For example, OQLQuery oql = castorDb.getOQLQuery( “CALL SQL SELECT id, name, date “+ “FROM user WHERE upper(name) like $1 AS myapp.Product”); But remember that the order of the fields listed must match what is defined in the mapping file.