public Predicate create ( org . cdlflex . fruit . Predicate predicate ) { Path < ? > attribute = resolvePath ( predicate . getKey ( ) ) ; Object value = predicate . getValue ( ) ; Predicate jpaPredicate = create ( predicate . getOp ( ) , attribute , value ) ; return ( predicate . isNot ( ) ) ? jpaPredicate . not ( ) : jpaPredicate ; }
Maps the given API Predicate object to a JPA criteria Predicate .