Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC0149BCC for ; Tue, 25 Oct 2011 18:04:52 +0000 (UTC) Received: (qmail 11732 invoked by uid 500); 25 Oct 2011 18:04:52 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 11699 invoked by uid 500); 25 Oct 2011 18:04:52 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 11646 invoked by uid 99); 25 Oct 2011 18:04:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 18:04:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 18:04:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5A0AE31B727 for ; Tue, 25 Oct 2011 18:02:32 +0000 (UTC) Date: Tue, 25 Oct 2011 18:02:32 +0000 (UTC) From: "Laird Nelson (Created) (JIRA)" To: dev@openjpa.apache.org Message-ID: <187527537.14508.1319565752370.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (OPENJPA-2065) JPA 2.0 Spec. Violation? EntityManager#createNamedQuery(String, Class) bombs with non-entity Class parameter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 JPA 2.0 Spec. Violation? EntityManager#createNamedQuery(String, Class) bombs with non-entity Class parameter ------------------------------------------------------------------------------------------------------------ Key: OPENJPA-2065 URL: https://issues.apache.org/jira/browse/OPENJPA-2065 Project: OpenJPA Issue Type: Bug Components: jpa Affects Versions: 2.1.0 Reporter: Laird Nelson Suppose we have an interface, A. Suppose we have an entity, B, that implements A. This construction will fail at runtime: {code} final TypedQuery q = em.createNamedQuery("someNamedQuery", A.class); {code} I don't see anywhere in the JPA specification that the class parameter must denote an entity type. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira