public static Criteria criteriaFromNode ( Node node , Comparator rangeComparator ) { return criteriaFromNode ( node , rangeComparator , null ) ; }
Creates criteria from a node . A Comparator is injected into all nodes which need to determine order or equality .