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
- is a clone of
-
OPENJPA-147 <T> T OpenJPAEntityManager.createInstance(Class<T> cls) fails when T is interface
- Closed
- is related to
-
OPENJPA-481 Queries against managed interfaces do not work in "mixed interface" configuration
- Closed