Count distinct substring with Hibernate Criteria

Viewed 154

Is there a way for writing something like

SELECT COUNT ( DISTINCT ( SUBSTRING ("field", 5, 20) ) ) FROM MyTable;

through Hibernate Criteria?

0 Answers
Related