ORMLite - Parenthesis in join where clauses
I would like to join three tables using QueryBuilder.join and QueryBuilder.joinor but I want parenthesis in the where clause something like this: WHERE first_table_where AND (second_table_where OR third_table_where) but it seems that is not possible. Perhaps I am missing something. Any help would be appreciated. Daber I guess that is a part of the doc you have been looking for... If you want to do complex queries linearly, you can even use Reverse Polish Notation (of all things). There is a Where.or(int) and Where.and(int) methods which do the operation on the previous number of specified