Re: SQL: Table aliases not supported for SqlQuery

2016-11-30 Thread Sergi Vladykin
I don't mind to have an alias in SqlQuery, but it is better to add setter method setAlias instead of having an additional constructor with signature (String,String,String). Sergi 2016-11-30 17:55 GMT+03:00 Andrey Mashenkov : > Hi Igniters, > > H2Indexing.generateQuery() generates wrong sql query

SQL: Table aliases not supported for SqlQuery

2016-11-30 Thread Andrey Mashenkov
Hi Igniters, H2Indexing.generateQuery() generates wrong sql query. It is used in SqlQuery class for queries like this: new SqlQuery(Person.class. "from Person p where p.salary > ? and p.salary <= ?") This query produce next sql query string: "SELECT "".Person._key, ""Person"._val FROM Per