OpenJPA
  1. OpenJPA
  2. OPENJPA-1696

Type discriminator for polymorphic queries limited to Single Table inheritance

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: query
    • Labels:
      None

      Description

      JPA2.0 spec defines TYPE discriminator which can be used in JPQL query to return polymorphic query results. The spec is unclear that the TYPE discriminator is for Single table inheritance or it can be used for Table per class or inheritance type Joined or not.
      The initial implementation in OpenJPA has limited it for Single Table inheritance, but it does not block the usage for the other 2 types of inheritance.
      This resulting incorrect SQL generated and SQLExceptions.

        Activity

        Catalina Wei created issue -
        Catalina Wei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.1.0 [ 12314542 ]
        Resolution Fixed [ 1 ]
        Hide
        Michael Dick added a comment -

        Closing issues which have been resolved for some time. If the problem persists, please reopen.

        Show
        Michael Dick added a comment - Closing issues which have been resolved for some time. If the problem persists, please reopen.
        Michael Dick made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Catalina Wei
            Reporter:
            Catalina Wei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development