Выполнение ниже строки кодов:
Criteria cri = dc.getExecutableCriteria(this.session);
int start = (p.getCurrentPage() - 1) * p.getPageSize();
int end = p.getPageSize();
cri.setFirstResult(start);
cri.setMaxResults(end);
result = cri.list();
когда исполняется cri.list () У меня есть проверка на выполнение SQL Hibernate из журналов,
Hibernate: select * from
(
select this_.ID as ID175_0_,
his_.NAME as NAME175_0_,
this_.DESCRIPTION as DESCRIPT3_175_0_,
this_.VALUE as VALUE175_0_,
this_.STATE as STATE175_0_,
this_.ATTR1 as ATTR7_175_0_,
this_.ATTR2 as ATTR8_175_0_,
this_.ATTR3 as ATTR9_175_0_,
this_.ATTR4 as ATTR10_175_0_,
this_.ATTR5 as ATTR11_175_0_,
this_.LASTUSER as LAST12_175_0_,
this_.LASTTIME as LAST13_175_0_,
this_.POLICY as POLICY175_0_
from TestDB.TestTable this_
where (1=1)
and
this_.VALUE18 is null
order by lower(this_.NAME) asc, this_.ID desc ) where rownum <= ?
что значит, где (1 = 1) здесь означает ??