OpenJPA
  1. OpenJPA
  2. OPENJPA-1299

TablePerClass only inherited by the first subclass

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: jpa
    • Labels:
      None
    • Environment:
      Windows Vista x64, MySQL

      Description

      I have my base class inheritance set to
      @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS), what I expected was
      that each subsequent subclass would use the same strategy by default. What I
      find is that this inheritance strategy only seems to be inherited by the
      first subclass but not the subsequence subclasses. For example:

      BaseClass - Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)

      Class Sub1 extends BaseClass - table per class functions without the need
      to anote the class

      Class Sub2 extends Sub1 - reverts to using single table unless anoted with
      .TABLE_PER_CLASS

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Christopher Davies
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development