Results 1 to 3 of 3

Thread: finders list incomplete

  1. #1
    Join Date
    Jul 2009
    Posts
    18

    Lightbulb finders list incomplete

    Hi,

    When executing the command
    Code:
    list finders for -class ~.key.Product
    I get:

    findProductsByName(String name)
    findProductsByNameEquals(String name)
    findProductsByNameIsNotNull()
    findProductsByNameIsNull()
    findProductsByNameLike(String name)
    findProductsByNameNotEquals(String name)
    It would be nice to also see:
    findProduct(id)
    findAllProducts()
    and maybe some more?

    Although it may seem obvious.In the meantime Roo keeps me awake until (too) late. Excellent stuff.

    Kind regards,

    Ronald Vermeire

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Hi Phil,

    Actually, the finder add-on does not present the findProduct(id) and findAllProducts() methods as both are already available by default courtesy of the entity add-on. If you take a look into Product_Roo_Entity.aj you will find these methods:

    Code:
    public static List<Product> Product.findAllProducts() {    
          [...]
    }    
        
    public static Product Product.findProduct(Long id) {    
           [...] 
    }
    Can you elaborate which other suggestions for finder methods you are missing. The dynamic finder add-on is still work-in-progress so I am sure we will extend and improve its functionality over time.

    Regards,
    Stefan

  3. #3
    Join Date
    Jul 2009
    Posts
    18

    Lightbulb

    Hi Stefan,

    After i install a finder it keeps showing in list when i do in shell
    list finders for -class
    So my suggestion was to also list the (default) installed ones, just for Roo beginners like me. Another suggestion not on finders though.

    When you create a manual controller it would be nice to have an extra flag which would put the code of the aspect of the automatic controller into the manual controller or maybe even better to create the manual controller with an annotated aspect with the code of the automatic controller.

    Kind Regards

    Ronald vermeirre (Phil?)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •