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

Enhancement failed for Inheritance (InheritanceType.TABLE_PER_CLASS)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 2.4.1
    • None
    • Enhance
    • None

    Description

      We have tried to update openjpa version from 2.2.0 to 2.4.1.
      A blocking error occurred in version 2.4.1 (works in 2.4.0)
      Enhancement of Inheritance class failed:

      Example:

      @Entity
      @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
      public abstract class Vehicule{
      @Id
      @Column(name = "VEHICULE_ID")
      private int vehiculeId;

      @Id
      @Column(name = "BRAND")
      private String brand;
      //get and set methods
      ...
      }

      Two child class:

      @Entity
      @Table(name="TRUCK")
      public class Truck extends Vehicule{

      private int noOfContainers;

      public int getNoOfContainers()

      { return noOfContainers; }

      public void setNoOfContainers(int noOfContainers)

      { this.noOfContainers = noOfContainers; }

      }

      @Entity
      @Table(name="CAR")
      public class Car extends Vehicule{

      private int noOfDoors;

      public int getNoOfDoors()

      { return noOfDoors; }

      public void setNoOfDoors(int noOfDoors)

      { this.noOfDoors = noOfDoors; }

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            matthieu.chastel Matthieu Chastel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: