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

OpenJPAEntityManager.createInstance(Class<T> cls) fails when T is an abstract class

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 1.3.0
    • jpa
    • None

    Description

      According to JavaDoc, OpenJPAEntityManager.createInstance() method
      public <T> T createInstance(Class<T> cls);
      behaves as follows:

      "Create a new instance of type <code>cls</code>. If <code>cls</code> is
      an interface or an abstract class whose abstract methods follow the
      JavaBeans convention, this method will create a concrete implementation
      according to the metadata that defines the class"

      The method fails when T is an abstract class.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ppoddar@apache.org Pinaki Poddar
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: