Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!