Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 669AB62E5 for ; Tue, 7 Jun 2011 15:17:06 +0000 (UTC) Received: (qmail 3653 invoked by uid 500); 7 Jun 2011 15:17:06 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 3612 invoked by uid 500); 7 Jun 2011 15:17:06 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 3603 invoked by uid 99); 7 Jun 2011 15:17:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 15:17:06 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of infinity2heaven@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 15:17:01 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QTy1I-0005rH-Il for users@openjpa.apache.org; Tue, 07 Jun 2011 08:16:40 -0700 Date: Tue, 7 Jun 2011 08:16:40 -0700 (PDT) From: infinity2heaven To: users@openjpa.apache.org Message-ID: <1307459800573-6450064.post@n2.nabble.com> Subject: The name "A" is not a recognized entity or identifier. Perhaps you meant .... MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit @Entity @Table(name = "profile_audit_detail") @SequenceGenerator(name = "profileAuditDetailSeq", sequenceName = "profile_audit_detail_seq") @NamedQueries({ @NamedQuery(name = "findByXXX", query = "xxx") }) public class ProfileAuditDetail implements Serializable { @ManyToOne(cascade = CascadeType.ALL) @JoinColumn(name = "audit_id") private ProfileAudit profileAudit; ... } em.createQuery("DELETE FROM ProfileAuditDetail").executeUpdate(); throws the following error: The name ProfileAuditDetail is not a recognized entity or identifier. Perhaps you meant .... The entity is listed in persistence.xml. I can run named queries and all. Everything else works just fine. I just can't delete from this table. Any ideas? -- View this message in context: http://openjpa.208410.n2.nabble.com/The-name-A-is-not-a-recognized-entity-or-identifier-Perhaps-you-meant-tp6450064p6450064.html Sent from the OpenJPA Users mailing list archive at Nabble.com.