Resolved issue: 647
 CriteriaQuery don't support "$type"