title: ORA-00920 - Sql exception when performing a Javers' query in ORACLE PL/SQL
body: <p>An exception is thrown whenever I try to execute a Javers JQL query. By example:</p>
  
  <p><strong>The query:</strong></p>
  
  <blockquote>
    <p>JqlQuery query = QueryBuilder.anyDomainObject().build();<br>
    Changes javers_changes = javers.findChanges( query );</p>
  </blockquote>
  
  <p><strong>Throws</strong></p>
  
  <blockquote>
    <p>org.javers.common.exception.JaversException: SQL_EXCEPTION: ORA-00920: invalid relational operator
    while executing sql: SELECT a.*, rownum FROM (    SELECT state, type, version, changed_properties, managed_type, commit_pk, author, commit_date, commit_date_instant, commit_id, g.local_id, g.fragment, g.owner_id_fk, o.local_id owner_local_id, o.fragment owner_fragment, o.type_name owner_type_name FROM jv_snapshot INNER JOIN jv_commit ON commit_pk = commit_fk INNER JOIN jv_global_id g ON g.global_id_pk = global_id_fk LEFT OUTER JOIN jv_global_id o ON o.global_id_pk = g.owner_id_fk WHERE 1 = 1 and (  false) ORDER BY snapshot_pk DESC ) a WHERE rownum &lt;= ?
        at org.javers.repository.sql.session.PreparedStatementExecutor.wrapExceptionAndCall(PreparedStatementExecutor.java:128) ~[javers-persistence-sql-5.1.2.jar!/:na]
        at org.javers.repository.sql.session.PreparedStatementExecutor.runSql(PreparedStatementExecutor.java:100) ~[javers-persistence-sql-5.1.2.jar!/:na]
        at 
    ...</p>
  </blockquote>
  
  <p>The database configuration as read and shown by the application on startup:</p>
  
  <blockquote>
    <p>2019-01-22 19:07:54.125  INFO 13270 --- [           main] o.j.s.b.sql.JaversSqlAutoConfiguration   : detected Hibernate dialect: Oracle10gDialect<br>
    2019-01-22 19:07:54.133  INFO 13270 --- [           main] o.j.repository.sql.SqlRepositoryBuilder  : starting SqlRepository...<br>
    2019-01-22 19:07:54.133  INFO 13270 --- [           main] o.j.repository.sql.SqlRepositoryBuilder  :   dialect:                 ORACLE<br>
    2019-01-22 19:07:54.133  INFO 13270 --- [           main] o.j.repository.sql.SqlRepositoryBuilder  :   schemaManagementEnabled: false<br>
    2019-01-22 19:07:54.134  INFO 13270 --- [           main] o.j.repository.sql.SqlRepositoryBuilder  :   schemaName:              null  </p>
  </blockquote>
  
  <p>My database is ORACLE and accepts Oracle/PLSQL commands. No error occurs when Javers commit data, however JQL commands appear to always fail. 
  Analysing the generate sql I have found out that the problems are:</p>
  
  <blockquote>
    <p>SELECT a.*, rownum FROM (    SELECT state, type, version, changed_properties, managed_type, commit_pk, author, commit_date, commit_date_instant, commit_id, g.local_id, g.fragment, g.owner_id_fk, o.local_id owner_local_id, o.fragment owner_fragment, o.type_name owner_type_name FROM jv_snapshot INNER JOIN jv_commit ON commit_pk = commit_fk INNER JOIN jv_global_id g ON g.global_id_pk = global_id_fk LEFT OUTER JOIN jv_global_id o ON o.global_id_pk = g.owner_id_fk WHERE 1 = 1 and (  false) ORDER BY snapshot_pk DESC ) a WHERE rownum &lt;= ?</p>
  </blockquote>
  
  <ul>
  <li>PL/SQL doesn't accept 'false' as it appears on WHERE;</li>
  <li>The character '?' isn't accepted;</li>
  </ul>
  
  <p>Is this dialect not accepted or am I doing something wrong?</p>