Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2413

Enhance dynamic finders to support composite primary keys

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1.4.RELEASE
    • Fix Version/s: None
    • Component/s: DYNAMIC FINDERS
    • Labels:
    • Environment:
      Linux Ubuntu 10.10, Apache Maven 3.0.2, Java 1.6.0_23, PostgreSQL 8.2.9, Commit 79bf6a92542ec54860baad787b62340cf7e3ddee

      Description

      With our experience, developers want to build finders with many properties without thinking if they are part of the primary key.

      The method to find by Id does not solve the requirement when a developer wants a finder with some properties of the primary key mixed with properties out of the primary key.

      Example:

      • A Invoice entity with a list of InvoiceItem entities.
      • InvoiceItem primary key properties: InvoiceNumber and InvoiceItemNumber
      • I would appreciate a InvoiceItem finder by InvoiceNumber and InvoiceItemAmount

      Please, provide finders for @Id or @EmbeddedId fields.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mmartinez Mario Martínez Sánchez - gvNIX - DISID
              • Votes:
                6 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1.25d
                  1.25d
                  Remaining:
                  Remaining Estimate - 1.25d
                  1.25d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified