• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I apply MatchMode.ANYWHERE to a selected property in criteria search?

 
david zhang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have the following code:

User user = new User();
user.setEmail("gmail");
user.setName("john");
Example example = Example.create(user);
example.enableLike(MatchMode.ANYWHERE);

My understanding is that MatchMode.ANYWHERE applies to both Name and Email properties. How can I make MatchMode.ANYWHERE apply to only one of them, not both?

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic