Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 74110 invoked from network); 15 Feb 2007 02:44:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 02:44:30 -0000 Received: (qmail 36478 invoked by uid 500); 15 Feb 2007 02:44:34 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 36373 invoked by uid 500); 15 Feb 2007 02:44:34 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 36310 invoked by uid 99); 15 Feb 2007 02:44:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 18:44:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 18:44:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BAD477141B8 for ; Wed, 14 Feb 2007 18:44:05 -0800 (PST) Message-ID: <17155720.1171507445763.JavaMail.jira@brutus> Date: Wed, 14 Feb 2007 18:44:05 -0800 (PST) From: "Pinaki Poddar (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Updated: (OPENJPA-147) T OpenJPAEntityManager.createInstance(Class cls) fails when T is interface In-Reply-To: <30046270.1171477145491.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pinaki Poddar updated OPENJPA-147: ---------------------------------- Attachment: iface.trace.2.txt > T OpenJPAEntityManager.createInstance(Class cls) fails when T is interface > --------------------------------------------------------------------------------- > > Key: OPENJPA-147 > URL: https://issues.apache.org/jira/browse/OPENJPA-147 > Project: OpenJPA > Issue Type: Bug > Components: jpa > Reporter: Pinaki Poddar > Attachments: iface.trace.1.txt, iface.trace.2.txt, iface.trace.3.txt, iface.trace.4.txt > > > According to JavaDoc, OpenJPAEntityManager.createInstance() method > public T createInstance(Class cls); > behaves as follows: > "Create a new instance of type cls. If cls 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 interface. The failure may be due to incorrect user configuration, however, further > information on this extension method is not available in OpenJPA documentation. > Firstly, how to specify metadata for a interface that has bean-style methods? > Possibilities are: > a) Annotating the Java interface definition with @Entity > b) Specifying in org.acme.IPerson in persistence.xml > Either of the above fails. a) fails at parsing b) fails with "no metadata" > There may be a correct but undocumented way of specifying a managed interface. If that is the case, then this JIRA report should be treated as a documentation bug. > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.