Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1288

Support alias() on Criteria Query API

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-M3
    • Component/s: jpa, query
    • Labels:
      None

      Description

      Selection.alias() according to latest JPA 2.0 creates new instances rather than adding an alias name to the receiver.
      This apparently simple change can have a relatively large impact, because we maintain Selection terms keyed by its alias.
      If we go for a delegation pattern to implement alias(), then all Selection derivations (quite a few of them) are to be delegated.

      Comments/thoughts?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ppoddar@apache.org Pinaki Poddar
                Reporter:
                ppoddar@apache.org Pinaki Poddar
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: