Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7893937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:15:51+00:00 2026-06-03T07:15:51+00:00

the finder list command in Spring-roo, I added the filter parameter to cut down

  • 0

the “finder list” command in Spring-roo, I added the “filter” parameter to cut down the list number of dynamic finder. But that didn’t work for me, it listed the finders which contains “name” OR “price” for me.

 finder list --depth 2 --filter name,price

Can anyone tell me how to filter them for only contains “name” AND “price” finders?
i.e.
findBooksByNameNotEqualsAndPrice(String name, Float price)
findBooksByNameEqualsAndPrice(String name, Float price)
……

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:15:53+00:00Added an answer on June 3, 2026 at 7:15 am

    I checked Roo’s source and it looks like there is no way to obtain the AND like behavior and only OR based logic is supported by the finder add-on.

    See the finder addon src here: https://github.com/SpringSource/spring-roo/blob/master/addon-finder/src/main/java/org/springframework/roo/addon/finder/FinderCommands.java#L71.

    or the source code right here:

    final SortedSet<String> result = new TreeSet<String>();
    for (final String finder : finders) {
        required: for (final String requiredEntry : requiredEntries) {
           if (finder.toLowerCase().contains(requiredEntry)) {
                result.add(finder);
                break required;
            }
        }
    }
    return result;
    

    It looks like the list operation adds a filter to the result list every time it finds any required entry in the finder lower case name.

    the only way I can think of to filter the list is to copy the output of the finder list command and run an external grep-like utility on it.
    Otherwise you could try matching as much of the finders name as possible: something like EqualsAndPrice(String name for example. Ater all a plain java String.contains method is used.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Terminal shell script file start.command that I launch from finder with:
I have followed Spring Roo tutorial (by Ben Alex). Until create finder everything went
Any way to make a OS X Finder like but valid XHTML/CSS search textfield
I am trying to create a Finder Alias from the command line or from
I have the following dynamic finder: gl=GlobalList.find_by_list_id_and_global_id(2, 89) Basically, I just want to see
How can I get the POSIX path of the Finder window that is currently
I'm trying to make an Applescript that takes a list of names and makes
I am getting a look at the Spring Web framework with Roo. And, I
Update: Solution below Say you have a list of selected items from Finder. Say
keytool -list -alias alias_name -keystore my-release-key.keystore using above command when i try to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.