Currently the st_geomtrytype function is supported by HQL only. For those projects using the Criteria API it would be useful to have this spatial function available as well.