OpenJPA
  1. OpenJPA
  2. OPENJPA-1288

Support alias() on Criteria Query API

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major 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?

        Issue Links

          Activity

          Hide
          Pinaki Poddar added a comment -

          After discussion in JPA 2.0 expert group, we reached the consensus that alias() be a mutation on the same instance rather than creating a new instance.
          But an aliased expression can not be aliased again.

          Show
          Pinaki Poddar added a comment - After discussion in JPA 2.0 expert group, we reached the consensus that alias() be a mutation on the same instance rather than creating a new instance. But an aliased expression can not be aliased again.

            People

            • Assignee:
              Pinaki Poddar
              Reporter:
              Pinaki Poddar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development