Results 1 to 2 of 2

Thread: Creating find by Controllers

  1. #1
    Join Date
    Aug 2005
    Posts
    7

    Default Creating find by Controllers

    I'm building out a new Roo app. I'd like to know if there's a best practice guide to creating a new Controller similar to the "Find by..." Controllers seen in the Pet Clinic app?

    Ex:
    Find by Description
    Find by Date Between
    etc.

    I have an Instrument entity which I've already created a Controller using scaffolding. How, using Roo, can I create a series of "find by" controllers for my Instrument entity? I know the "hard way" of doing this, programmatically by hand, but I'd like to know if Roo provides any shortcuts. I couldn't find anything relevant in the docs.

    Thanks in advance,
    Stephen

  2. #2
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    667

    Lightbulb

    Check out these finder commands in the reference docs:

    • finder list
    • finder add

    Also please see my tip about generating multi-field finders.
    Andrew Swan
    "Now is the EJB of our discontent made glorious Spring"

Tags for this Thread

Posting Permissions

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