change the entity mapper to support some predicate.