I have just upgraded to V2.0.0 and tried the following code ..
SqlQuery diffSql = new SqlQuery(PendingAvGroup.class,
" from PendingAvGroup as pnd " +
"where not exists(select 1 from " +
"\"Processed_PendingAvGroup_cache\".PendingAvGroup prc " +
" WHERE prc.resourceGroupId = pnd.resourceGroupId)"
);
But i get the following error ..
Caused by: org.h2.jdbc.JdbcSQLException: Column "Pending_PendingAvGroup_cache.PENDINGAVGROUP._KEY" not found; SQL statement: SELECT "Pending_PendingAvGroup_cache".PendingAvGroup._key, "Pending_PendingAvGroup_cache".PendingAvGroup._val from PendingAvGroup as pnd where not exists(select 1 from "Processed_PendingAvGroup_cache".PendingAvGroup prc WHERE prc.resourceGroupId = pnd.resourceGroupId) [42122-195] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) ~[h2-1.4.195.jar:1.4.195]
Its appears that when ever I provide a FROM clause I get '._KEY" not found;' error ... even for a single table.
Id really appreciate anyones help on this .. Thanks Paul