• 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!
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!