Announcement Announcement Module
Collapse
No announcement yet.
finders list incomplete Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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?)

      Comment

      Working...
      X